public final class TestRuleIgnoreTestSuites extends Object implements org.junit.rules.TestRule
This is a workaround for problems with certain JUnit containers (IntelliJ) which automatically discover test suites and attempt to run nested classes that we use for testing the test framework itself.
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | TestRuleIgnoreTestSuites.NestedTestSuiteMarker interface for nested suites that should be ignored
 if executed in stand-alone mode. | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | PROPERTY_RUN_NESTEDA boolean system property indicating nested suites should be executed
 normally. | 
| Constructor and Description | 
|---|
| TestRuleIgnoreTestSuites() | 
| Modifier and Type | Method and Description | 
|---|---|
| org.junit.runners.model.Statement | apply(org.junit.runners.model.Statement s,
     Description d) | 
| static boolean | isRunningNested()Check if a suite class is running as a nested test. | 
public static final String PROPERTY_RUN_NESTED
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement s, Description d)
apply in interface org.junit.rules.TestRulepublic static boolean isRunningNested()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.