Community

Hello Is there a possibility to write unittest in AnyLogic? Can I write JUnit Test Cases to test my ActiveObjects. Thanks for help Urs
It is possible, I think. Since AnyLogic generates Java code, you can create your own project in Eclipse with those generated classes and do the JUnit tests. I prefer the combination of JUnit and contract programming by using assertion in Java for simulation. Khoi Nguyen
Hello Thank you for your idea. I understand what you mean. Now I can test so methods and check at runtime the conditions. Do you know what I have to do, if I would like to test a ActiveObject with JUnit? I don't understand how I pass a Entity to a ActiveObjet. I would like to check the state before I pass the Entity to the ActiveObject and after. Bye Urs