Can I access the Model State in my RuleSource Plugin Test?


(Appu Goundan) #1

I have a RuleSource based plugin that mutates the model in @Defaults @Mutate and @Finalize based on the input environment. I would like to test the result of what’s going on here after configuration and before tasks start to run.

Is there something like TestKit for inspecting the model in a Test?


Testing Model rules
(Mark Vieira) #2

There’s no public framework for this but you can do some unit tests with ProjectBuilder. Take a look at this test and it’s superclass for an example.


(Appu Goundan) #3

Thanks mark, I’ll try this out