类org.junit.experimental.categories.Categories源码实例Demo

下面列出了怎么用org.junit.experimental.categories.Categories的API类实例代码及写法,或者点击链接到github查看源代码。

/**
 * Constructs a new {@code SpringJUnit4ClassRunner} and initializes a
 * {@link org.springframework.test.context.TestContextManager} to provide Spring testing functionality to
 * standard JUnit tests.
 *
 * @param clazz the test class to be run
 * @see #createTestContextManager(Class)
 */
public LdapConditionallyFilteredTestRunner(Class<?> clazz) throws InitializationError {
    super(clazz);

    String noadtest = System.getProperty("adtest");
    if (noadtest != null) {
        try {
            filter(Categories.CategoryFilter.exclude(NoAdTest.class));
        } catch (NoTestsRemainException e) {
            // Nothing to do here.
        }
    }
}
 
 类所在包
 类方法
 同包方法