Home
last modified time | relevance | path

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

1234

/external/junit/src/main/java/org/junit/rules/
DRuleChain.java58 public class RuleChain implements TestRule {
60 Collections.<TestRule>emptyList());
62 private List<TestRule> rulesStartingWithInnerMost;
81 public static RuleChain outerRule(TestRule outerRule) { in outerRule()
85 private RuleChain(List<TestRule> rules) { in RuleChain()
97 public RuleChain around(TestRule enclosedRule) { in around()
101 List<TestRule> rulesOfNewChain = new ArrayList<TestRule>(); in around()
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()
/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;
/external/junit/src/main/java/org/junit/runners/
DRuleContainer.java11 import org.junit.rules.TestRule;
23 private final List<TestRule> testRules = new ArrayList<TestRule>();
37 public void add(TestRule testRule) { in add()
61 for (TestRule rule : testRules) { in getSortedEntries()
79 result = ((TestRule) ruleEntry.rule).apply(result, description); in apply()
DParentRunner.java30 import org.junit.rules.TestRule;
268 List<TestRule> classRules = classRules(); in withClassRules()
277 protected List<TestRule> classRules() { in classRules()
279 testClass.collectAnnotatedMethodValues(null, ClassRule.class, TestRule.class, collector); in classRules()
280 testClass.collectAnnotatedFieldValues(null, ClassRule.class, TestRule.class, collector); in classRules()
564 private static class ClassRuleCollector implements MemberValueConsumer<TestRule> {
567 public void accept(FrameworkMember<?> member, TestRule value) {
573 public List<TestRule> getOrderedRules() {
575 List<TestRule> result = new ArrayList<TestRule>(entries.size());
577 result.add((TestRule) entry.rule);
DBlockJUnit4ClassRunner.java26 import org.junit.rules.TestRule;
400 List<TestRule> testRules = getTestRules(target); in withRules()
402 if (!(each instanceof TestRule && testRules.contains(each))) { in withRules()
406 for (TestRule rule : testRules) { in withRules()
434 protected List<TestRule> getTestRules(Object target) { in getTestRules()
435 RuleCollector<TestRule> collector = new RuleCollector<TestRule>(); in getTestRules()
436 getTestClass().collectAnnotatedMethodValues(target, Rule.class, TestRule.class, collector); in getTestRules()
437 getTestClass().collectAnnotatedFieldValues(target, Rule.class, TestRule.class, collector); in getTestRules()
/external/libchrome/base/test/android/junit/src/org/chromium/base/test/
DSetUpStatementTest.java10 import org.junit.rules.TestRule;
24 private SetUpTestRule<TestRule> mRule;
36 mRule = new SetUpTestRule<TestRule>() { in setUp()
43 public TestRule shouldSetUp(boolean toSetUp) { in setUp()
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/
DSetUpStatement.java7 import org.junit.rules.TestRule;
18 private final SetUpTestRule<? extends TestRule> mSetUpTestRule;
22 final Statement base, SetUpTestRule<? extends TestRule> callback, boolean shouldSetUp) { in SetUpStatement()
DBaseJUnit4ClassRunner.java16 import org.junit.rules.TestRule;
176 protected List<TestRule> getDefaultTestRules() { in getDefaultTestRules()
196 protected final List<TestRule> getTestRules(Object target) { in getTestRules()
197 List<TestRule> declaredRules = super.getTestRules(target); in getTestRules()
198 List<TestRule> defaultRules = getDefaultTestRules(); in getTestRules()
DSetUpTestRule.java7 import org.junit.rules.TestRule;
18 public interface SetUpTestRule<T extends TestRule> {
/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/dagger2/java/dagger/hilt/android/testing/
DHiltAndroidRule.java22 import org.junit.rules.TestRule;
31 public final class HiltAndroidRule implements TestRule {
/external/dagger2/javatests/dagger/grpc/functional/server/
DVerifyInterceptor.java25 import org.junit.rules.TestRule;
29 final class VerifyInterceptor implements TestRule {
/external/junit-params/src/test/java/junitparams/
DRulesTest.java9 import org.junit.rules.TestRule;
53 TestRule testRule;
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/
DAlgorithmParametersTestDESede.java29 import org.junit.rules.TestRule;
44 public static TestRule enableDeprecatedBCAlgorithmsRule =
DAlgorithmParametersTestAES.java29 import org.junit.rules.TestRule;
43 public static TestRule enableDeprecatedBCAlgorithmsRule =
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/
DAlgorithmParametersTestAES.java28 import org.junit.rules.TestRule;
40 public static TestRule enableDeprecatedBCAlgorithmsRule =
DAlgorithmParametersTestDESede.java28 import org.junit.rules.TestRule;
40 public static TestRule enableDeprecatedBCAlgorithmsRule =
DKeyFactoryTestEC.java29 import org.junit.rules.TestRule;
41 public static TestRule enableDeprecatedBCAlgorithmsRule =

1234