I am trying to add a non-existing method to a Java bean, compile it and use the newly added method in Drools rules. Via a custom class loader. I am using CompilerUtils to bind newly modified class to the custom ClassLoader as follows: And this is where I give access to drools my classloader This is how I fire rules
Tag: rules
Is it possible to access instance of exception “catched” with JUnit Rule ExpectedException?
Suppose that in a test is: and some test contains: Now if there is a need to inspect this SomeNastyException more detailed what would be the way? Of course it would be possible just not to use ExcpectedException and wrap call with try/catch and then inspect the exception in any way it is needed but now question is about can