Search in sources :

Example 1 with AlsoTest

use of com.github.lindenb.jvarkit.tests.AlsoTest in project jvarkit by lindenb.

the class MiniTestNG method registerTestClass.

private int registerTestClass(final Set<Class<?>> classes, final Class<?> clazz) {
    if (classes.contains(clazz))
        return 0;
    LOG.info("adding " + clazz);
    classes.add(clazz);
    final AlsoTest also = clazz.getAnnotation(AlsoTest.class);
    if (also != null && also.value() != null && also.value().length > 0) {
        for (final Class<?> c2 : also.value()) {
            if (registerTestClass(classes, c2) != 0)
                return -1;
        }
    }
    return 0;
}
Also used : AlsoTest(com.github.lindenb.jvarkit.tests.AlsoTest)

Aggregations

AlsoTest (com.github.lindenb.jvarkit.tests.AlsoTest)1