Without this change tests launched from command line via maven ignore @Before and @After annotations which makes it impossible to run unit tests outside of IDE.
Before the change:
% mvn -Dtest="PCISPHSolverTest" test
...
org.geppetto.solver.sph.internal.PCISPHSolverTest.testSolve15_NoNaN() Time elapsed: 1.037 sec <<< FAILURE!
java.lang.NullPointerException
at org.geppetto.solver.sph.SPHSolverService.updateStateTree(SPHSolverService.java:1126)
at org.geppetto.solver.sph.SPHSolverService.solve(SPHSolverService.java:1112)
at org.geppetto.solver.sph.internal.PCISPHSolverTest.testSolve15_NoNaN(PCISPHSolverTest.java:209)
...
Tests run: 8, Failures: 8, Errors: 0, Skipped: 0
After the change:
% mvn -Dtest="PCISPHSolverTest" test
...
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0
Without this change tests launched from command line via maven ignore @Before and @After annotations which makes it impossible to run unit tests outside of IDE.
Before the change: % mvn -Dtest="PCISPHSolverTest" test ... org.geppetto.solver.sph.internal.PCISPHSolverTest.testSolve15_NoNaN() Time elapsed: 1.037 sec <<< FAILURE! java.lang.NullPointerException at org.geppetto.solver.sph.SPHSolverService.updateStateTree(SPHSolverService.java:1126) at org.geppetto.solver.sph.SPHSolverService.solve(SPHSolverService.java:1112) at org.geppetto.solver.sph.internal.PCISPHSolverTest.testSolve15_NoNaN(PCISPHSolverTest.java:209) ... Tests run: 8, Failures: 8, Errors: 0, Skipped: 0
After the change: % mvn -Dtest="PCISPHSolverTest" test ... Tests run: 8, Failures: 0, Errors: 0, Skipped: 0