Question

It can be happened, that the the unit test cannot test properly due too system condition. eg: another job is running, what locks a table what is used by a service what should be tested.

in this case the output of the test should not be SUCCESS nor FAIL... it should be just like IGNORED

is there a way to set the unit test 'ignored' in the test itself?

Was it helpful?

Solution

It looks like you want Assume from JUnit4. Look at this documentation http://junit.sourceforge.net/javadoc/org/junit/Assume.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top