Home
last modified time | relevance | path

Searched refs:TestRule (Results 1 – 25 of 39) sorted by relevance

12

/external/junit/src/main/java/org/junit/rules/
DRuleChain.java43 public class RuleChain implements TestRule {
45 Collections.<TestRule>emptyList());
47 private List<TestRule> rulesStartingWithInnerMost;
66 public static RuleChain outerRule(TestRule outerRule) { in outerRule()
70 private RuleChain(List<TestRule> rules) { in RuleChain()
81 public RuleChain around(TestRule enclosedRule) { in around()
82 List<TestRule> rulesOfNewChain = new ArrayList<TestRule>(); in around()
92 for (TestRule each : rulesStartingWithInnerMost) { in apply()
DRunRules.java14 public RunRules(Statement base, Iterable<TestRule> rules, Description description) { in RunRules()
23 private static Statement applyAll(Statement result, Iterable<TestRule> rules, in applyAll()
25 for (TestRule each : rules) { in applyAll()
DTestRule.java45 public interface TestRule { interface
DVerifier.java30 public abstract class Verifier implements TestRule {
DExternalResource.java37 public abstract class ExternalResource implements TestRule {
/external/mockito/src/test/java/org/mockitoutil/
DRetryRule.java8 import org.junit.rules.TestRule;
14 public class RetryRule implements TestRule {
15 private final TestRule innerRule;
21 private RetryRule(TestRule innerRule) { in RetryRule()
29 private static class NumberedAttempts implements TestRule {
/external/vogar/src/vogar/target/junit/
DRunnerParams.java19 import org.junit.rules.TestRule;
34 private final TestRule testRule;
36 public RunnerParams(String qualification, String[] args, TestRule testRule) { in RunnerParams()
50 public TestRule getTestRule() { in getTestRule()
DApplyGlobalRulesBlockJUnit4ClassRunner.java20 import org.junit.rules.TestRule;
33 private final TestRule testRule;
35 public ApplyGlobalRulesBlockJUnit4ClassRunner(Class<?> klass, TestRule testRule) in ApplyGlobalRulesBlockJUnit4ClassRunner()
DValidateTestMethodWhenRunBlockJUnit4ClassRunner.java21 import org.junit.rules.TestRule;
37 protected ValidateTestMethodWhenRunBlockJUnit4ClassRunner(Class<?> klass, TestRule testRule) in ValidateTestMethodWhenRunBlockJUnit4ClassRunner()
DParentStatementRunner.java20 import org.junit.rules.TestRule;
41 private final TestRule testRule;
DStatementRunner.java19 import org.junit.rules.TestRule;
39 private final TestRule testRule;
DTimeoutAndAbortRunRule.java27 import org.junit.rules.TestRule;
35 public class TimeoutAndAbortRunRule implements TestRule {
/external/junit/src/main/java/org/junit/runners/
DBlockJUnit4ClassRunner.java25 import org.junit.rules.TestRule;
353 List<TestRule> testRules = getTestRules(target); in withRules()
361 private Statement withMethodRules(FrameworkMethod method, List<TestRule> testRules, in withMethodRules()
398 private Statement withTestRules(FrameworkMethod method, List<TestRule> testRules, in withTestRules()
409 protected List<TestRule> getTestRules(Object target) { in getTestRules()
410 List<TestRule> result = getTestClass().getAnnotatedMethodValues(target, in getTestRules()
411 Rule.class, TestRule.class); in getTestRules()
414 Rule.class, TestRule.class)); in getTestRules()
DParentRunner.java26 import org.junit.rules.TestRule;
244 List<TestRule> classRules = classRules(); in withClassRules()
253 protected List<TestRule> classRules() { in classRules()
254 … List<TestRule> result = testClass.getAnnotatedMethodValues(null, ClassRule.class, TestRule.class); in classRules()
255 result.addAll(testClass.getAnnotatedFieldValues(null, ClassRule.class, TestRule.class)); in classRules()
/external/mockito/src/main/java/org/mockito/junit/
DVerificationCollector.java7 import org.junit.rules.TestRule;
41 public interface VerificationCollector extends TestRule {
/external/vogar/test/vogar/android/
DVogarArgsRule.java20 import org.junit.rules.TestRule;
30 public class VogarArgsRule implements TestRule {
/external/junit-params/src/test/java/junitparams/
DRulesTest.java9 import org.junit.rules.TestRule;
53 TestRule testRule;
/external/vogar/test/vogar/target/
DTestRunnerRule.java21 import org.junit.rules.TestRule;
34 public class TestRunnerRule implements TestRule {
/external/vogar/test/vogar/testing/
DInterceptOutputStreams.java26 import org.junit.rules.TestRule;
34 public class InterceptOutputStreams implements TestRule {
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/junit/rules/
DExpectedLogMessagesRule.java8 import org.junit.rules.TestRule;
18 public final class ExpectedLogMessagesRule implements TestRule {
/external/javapoet/src/test/java/com/squareup/javapoet/
DTypesEclipseTest.java40 import org.junit.rules.TestRule;
60 public static final class CompilationRule implements TestRule {
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/
DWebSocketWriterTest.java28 import org.junit.rules.TestRule;
48 @Rule public final TestRule noDataLeftBehind = new TestRule() {
/external/okhttp/okhttp-testing-support/src/main/java/com/squareup/okhttp/internal/io/
DInMemoryFileSystem.java32 import org.junit.rules.TestRule;
37 public final class InMemoryFileSystem implements FileSystem, TestRule {
/external/grpc-grpc-java/testing/src/main/java/io/grpc/testing/
DGrpcCleanupRule.java34 import org.junit.rules.TestRule;
48 public final class GrpcCleanupRule implements TestRule {
/external/junit/src/main/java/org/junit/internal/runners/rules/
DRuleMemberValidator.java6 import org.junit.rules.TestRule;
142 return TestRule.class.isAssignableFrom(member.getType()); in isTestRule()

12