These are my testcases
class Mother {
    @Before
    public void setUp() {
        if (!this.getClass().isAnnotatedWith("Version20")) { // pseudo code
            /*
             * stop this test without failing!
             */
        }
        // further setup
    }
}
@Version20
class Child extends Mother {
    @Test
    public void test() {
        // run only when Version == 20
    }
}
Is it possible to stop the test in Child in the @Before method of Mother without failing or assertTrue(false)?
edit: I have more Versions @Version19, @Version18 etc. my software is reading a configfile and outputting the result some tests are only applicable for special Versions. I don't want to make the version check within the test method because i have a lot of small tests and don't like code duplication
 
     
    