How do we unit test rules in optaplanner that depend on insertedFact?
As per the examples for drools, its inserting fact using session object and then unit testing the actual rule. How can we access session object in optaplanner? I am creating SolverFactory using xml resource.
Take a look at
ScoreVerifier, explained in the docs. It's part ofoptaplanner-test.jar.