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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top