concept @Disabled in category java
appears as: @Disabled

This is an excerpt from Manning's book JUnit in Action.
The @Disabled annotation can be used over classes and test methods. It signals that the annotated test class or test method is disabled and should not be executed. The programmers at Tested Data Systems use it to give their reasons for disabling a test so that the rest of the team knows exactly why that was done. If this annotation is applied to a class, it disables all the methods of the test. Also, the disabled tests and the reasons for their being disabled are displayed differently on each programmer’s console when the programmer runs them from the IDE.
Listing 2.5 @Disabled annotation used on a test class
@Disabled("Feature is still under construction.") #1 class DisabledClassTest { private SUT systemUnderTest= new SUT("Our system under test"); @Test void testRegularWork() { boolean canReceiveRegularWork = systemUnderTest.canReceiveRegularWork(); assertTrue(canReceiveRegularWork); } @Test void testAdditionalWork() { boolean canReceiveAdditionalWork = systemUnderTest.canReceiveAdditionalWork(); assertFalse(canReceiveAdditionalWork); } }