/external/junit/src/main/java/org/junit/experimental/theories/internal/ |
D | SpecificDataPointsSupplier.java | 13 import org.junit.runners.model.FrameworkMethod; 57 protected Collection<FrameworkMethod> getSingleDataPointMethods(ParameterSignature sig) { in getSingleDataPointMethods() 58 Collection<FrameworkMethod> methods = super.getSingleDataPointMethods(sig); in getSingleDataPointMethods() 61 List<FrameworkMethod> methodsWithMatchingNames = new ArrayList<FrameworkMethod>(); in getSingleDataPointMethods() 63 for (FrameworkMethod method : methods) { in getSingleDataPointMethods() 74 protected Collection<FrameworkMethod> getDataPointsMethods(ParameterSignature sig) { in getDataPointsMethods() 75 Collection<FrameworkMethod> methods = super.getDataPointsMethods(sig); in getDataPointsMethods() 78 List<FrameworkMethod> methodsWithMatchingNames = new ArrayList<FrameworkMethod>(); in getDataPointsMethods() 80 for (FrameworkMethod method : methods) { in getDataPointsMethods()
|
D | AllMembersSupplier.java | 17 import org.junit.runners.model.FrameworkMethod; 25 private final FrameworkMethod method; 27 private MethodParameterValue(FrameworkMethod dataPointMethod) { in MethodParameterValue() 77 for (FrameworkMethod dataPointsMethod : getDataPointsMethods(sig)) { in addMultiPointMethods() 98 for (FrameworkMethod dataPointMethod : getSingleDataPointMethods(sig)) { in addSinglePointMethods() 174 protected Collection<FrameworkMethod> getDataPointsMethods(ParameterSignature sig) { in getDataPointsMethods() 200 protected Collection<FrameworkMethod> getSingleDataPointMethods(ParameterSignature sig) { in getSingleDataPointMethods()
|
/external/junit/src/main/java/org/junit/runners/ |
D | BlockJUnit4ClassRunner.java | 30 import org.junit.runners.model.FrameworkMethod; 63 public class BlockJUnit4ClassRunner extends ParentRunner<FrameworkMethod> { 66 …private final ConcurrentMap<FrameworkMethod, Description> methodDescriptions = new ConcurrentHashM… 92 protected void runChild(final FrameworkMethod method, RunNotifier notifier) { in runChild() 112 protected boolean isIgnored(FrameworkMethod child) { in isIgnored() 117 protected Description describeChild(FrameworkMethod method) { in describeChild() 130 protected List<FrameworkMethod> getChildren() { in getChildren() 143 protected List<FrameworkMethod> computeTestMethods() { in computeTestMethods() 259 protected Object createTest(FrameworkMethod method) throws Exception { in createTest() 267 protected String testName(FrameworkMethod method) { in testName() [all …]
|
D | Parameterized.java | 22 import org.junit.runners.model.FrameworkMethod; 324 List<FrameworkMethod> methods = getTestClass().getAnnotatedMethods(annotation); in validatePublicStaticVoidMethods() 325 for (FrameworkMethod fm : methods) { in validatePublicStaticVoidMethods() 364 private final FrameworkMethod parametersMethod; 423 TestClass testClass, FrameworkMethod parametersMethod) throws Throwable { in allParameters() 442 private static FrameworkMethod getParametersMethod(TestClass testClass) throws Exception { in getParametersMethod() 443 List<FrameworkMethod> methods = testClass in getParametersMethod() 445 for (FrameworkMethod each : methods) { in getParametersMethod() 485 TestClass testClass, FrameworkMethod parametersMethod) throws Exception { in parametersMethodReturnedWrongType()
|
/external/mockito/src/test/java/org/mockitoutil/ |
D | SafeJUnitRuleTest.java | 10 import org.junit.runners.model.FrameworkMethod; 27 }, mock(FrameworkMethod.class), this).evaluate(); in happy_path_no_exception() 40 }, mock(FrameworkMethod.class), this).evaluate(); in regular_failing_test() 52 }, mock(FrameworkMethod.class), this).evaluate(); in rule_threw_exception() 65 }, mock(FrameworkMethod.class), this).evaluate(); in expected_exception_but_no_exception() 84 }, mock(FrameworkMethod.class), this).evaluate(); in expected_exception_message_did_not_match() 101 }, mock(FrameworkMethod.class), this).evaluate(); in expected_exception_type_did_not_match() 122 }, mock(FrameworkMethod.class), this).evaluate(); in expected_exception_assert_did_not_match() 131 public Statement apply(final Statement base, FrameworkMethod method, Object target) { in apply()
|
/external/robolectric-shadows/junit/src/main/java/org/robolectric/internal/ |
D | SandboxTestRunner.java | 22 import org.junit.runners.model.FrameworkMethod; 101 final List<FrameworkMethod> befores = testClass.getAnnotatedMethods(BeforeClass.class); 102 for (FrameworkMethod before : befores) { 110 final List<FrameworkMethod> afters = testClass.getAnnotatedMethods(AfterClass.class); 111 for (FrameworkMethod after : afters) { 120 protected void runChild(FrameworkMethod method, RunNotifier notifier) { 142 protected Sandbox getSandbox(FrameworkMethod method) { 157 protected InstrumentationConfiguration createClassLoaderConfig(FrameworkMethod method) { 183 …private void addInstrumentedPackages(FrameworkMethod method, InstrumentationConfiguration.Builder … 199 protected void configureSandbox(Sandbox sandbox, FrameworkMethod method) { [all …]
|
/external/junit/src/main/java/org/junit/rules/ |
D | TestWatchman.java | 4 import org.junit.runners.model.FrameworkMethod; 46 public Statement apply(final Statement base, final FrameworkMethod method, in apply() 70 public void succeeded(FrameworkMethod method) { 76 public void failed(Throwable e, FrameworkMethod method) { 82 public void starting(FrameworkMethod method) { 89 public void finished(FrameworkMethod method) {
|
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/params/ |
D | ParameterizedRunnerDelegateFactory.java | 8 import org.junit.runners.model.FrameworkMethod; 34 List<FrameworkMethod> unmodifiableFrameworkMethodList = in createRunner() 57 static List<FrameworkMethod> generateUnmodifiableFrameworkMethodList( in generateUnmodifiableFrameworkMethodList() 60 List<FrameworkMethod> returnList = new ArrayList<>(); in generateUnmodifiableFrameworkMethodList() 62 for (FrameworkMethod method : testClass.getAnnotatedMethods(Test.class)) { in generateUnmodifiableFrameworkMethodList() 106 private static List<FrameworkMethod> createParameterizedMethods( in createParameterizedMethods() 107 FrameworkMethod baseMethod, Iterable<ParameterSet> parameterSetList, String suffix) { in createParameterizedMethods() 109 List<FrameworkMethod> returnList = new ArrayList<>(); in createParameterizedMethods()
|
D | ParameterizedFrameworkMethod.java | 7 import org.junit.runners.model.FrameworkMethod; 19 public class ParameterizedFrameworkMethod extends FrameworkMethod { 50 static List<FrameworkMethod> wrapAllFrameworkMethods( in wrapAllFrameworkMethods() 51 Collection<FrameworkMethod> frameworkMethods, String classParameterSetName) { in wrapAllFrameworkMethods() 52 List<FrameworkMethod> results = new ArrayList<>(); in wrapAllFrameworkMethods() 53 for (FrameworkMethod frameworkMethod : frameworkMethods) { in wrapAllFrameworkMethods()
|
D | ParameterizedRunnerDelegateCommon.java | 7 import org.junit.runners.model.FrameworkMethod; 22 private final List<FrameworkMethod> mParameterizedFrameworkMethodList; 25 List<FrameworkMethod> parameterizedFrameworkMethods) { in ParameterizedRunnerDelegateCommon() 41 public List<FrameworkMethod> computeTestMethods() { in computeTestMethods()
|
/external/junit/src/main/java/org/junit/experimental/theories/ |
D | Theories.java | 16 import org.junit.runners.model.FrameworkMethod; 127 for (FrameworkMethod each : computeTestMethods()) { in validateTestMethods() 160 protected List<FrameworkMethod> computeTestMethods() { in computeTestMethods() 161 … List<FrameworkMethod> testMethods = new ArrayList<FrameworkMethod>(super.computeTestMethods()); in computeTestMethods() 162 List<FrameworkMethod> theoryMethods = getTestClass().getAnnotatedMethods(Theory.class); in computeTestMethods() 169 public Statement methodBlock(final FrameworkMethod method) { in methodBlock() 176 private final FrameworkMethod testMethod; 181 public TheoryAnchor(FrameworkMethod testMethod, TestClass testClass) { in TheoryAnchor() 231 public Statement methodBlock(FrameworkMethod method) { in runWithCompleteAssignment() 251 protected Statement methodInvoker(FrameworkMethod method, Object test) { in runWithCompleteAssignment() [all …]
|
/external/junit/src/main/java/org/junit/internal/runners/statements/ |
D | RunBefores.java | 5 import org.junit.runners.model.FrameworkMethod; 13 private final List<FrameworkMethod> befores; 15 public RunBefores(Statement next, List<FrameworkMethod> befores, Object target) { in RunBefores() 23 for (FrameworkMethod before : befores) { in evaluate() 32 protected void invokeMethod(FrameworkMethod method) throws Throwable { in invokeMethod()
|
D | RunAfters.java | 6 import org.junit.runners.model.FrameworkMethod; 15 private final List<FrameworkMethod> afters; 17 public RunAfters(Statement next, List<FrameworkMethod> afters, Object target) { in RunAfters() 31 for (FrameworkMethod each : afters) { in evaluate() 45 protected void invokeMethod(FrameworkMethod method) throws Throwable { in invokeMethod()
|
D | InvokeMethod.java | 3 import org.junit.runners.model.FrameworkMethod; 7 private final FrameworkMethod testMethod; 10 public InvokeMethod(FrameworkMethod testMethod, Object target) { in InvokeMethod()
|
/external/vogar/src/vogar/target/junit/ |
D | VogarBlockJUnit4ClassRunner.java | 28 import org.junit.runners.model.FrameworkMethod; 63 protected List<FrameworkMethod> getChildren() { in getChildren() 67 List<FrameworkMethod> methods = super.getChildren(); in getChildren() 75 Map<String, FrameworkMethod> map = new HashMap<>(); in getChildren() 76 for (FrameworkMethod method : methods) { in getChildren() 82 FrameworkMethod method = map.get(name); in getChildren() 104 private static class MissingFrameworkMethod extends FrameworkMethod {
|
D | ValidateTestMethodWhenRunBlockJUnit4ClassRunner.java | 22 import org.junit.runners.model.FrameworkMethod; 48 protected Statement methodInvoker(final FrameworkMethod frameworkMethod, Object test) { in methodInvoker() 61 private final FrameworkMethod frameworkMethod; 64 public ValidateMethodStatement(FrameworkMethod frameworkMethod, Statement methodInvoker) { in ValidateMethodStatement()
|
/external/junit-params/src/main/java/junitparams/internal/ |
D | TestMethod.java | 12 import org.junit.runners.model.FrameworkMethod; 26 private FrameworkMethod frameworkMethod; 34 public TestMethod(FrameworkMethod method, TestClass testClass) { in TestMethod() 47 public static List<FrameworkMethod> listFrom(TestClass testClass) { in listFrom() 48 List<FrameworkMethod> methods = new ArrayList<FrameworkMethod>(); in listFrom() 50 for (FrameworkMethod frameworkMethod : testClass.getAnnotatedMethods(Test.class)) { in listFrom() 156 private void verifyMethodCanBeRunByStandardRunner(FrameworkMethod method) { in verifyMethodCanBeRunByStandardRunner() 176 public FrameworkMethod frameworkMethod() { in frameworkMethod()
|
D | InvokeNonParameterisedMethod.java | 3 import org.junit.runners.model.FrameworkMethod; 11 private final FrameworkMethod testMethod; 14 InvokeNonParameterisedMethod(FrameworkMethod testMethod, Object testClass) { in InvokeNonParameterisedMethod()
|
/external/junit-params/src/main/java/junitparams/ |
D | JUnitParamsRunner.java | 9 import org.junit.runners.model.FrameworkMethod; 409 protected void runChild(FrameworkMethod method, RunNotifier notifier) { in runChild() 441 private DescribableFrameworkMethod getDescribableMethod(FrameworkMethod method) { in getDescribableMethod() 463 protected List<FrameworkMethod> computeTestMethods() { in computeTestMethods() 468 protected Statement methodInvoker(FrameworkMethod method, Object test) { in methodInvoker() 478 protected Description describeChild(FrameworkMethod method) { in describeChild()
|
/external/junit/src/main/java/org/junit/runners/model/ |
D | TestClass.java | 36 private final Map<Class<? extends Annotation>, List<FrameworkMethod>> methodsForAnnotations; 52 Map<Class<? extends Annotation>, List<FrameworkMethod>> methodsForAnnotations = in TestClass() 53 new LinkedHashMap<Class<? extends Annotation>, List<FrameworkMethod>>(); in TestClass() 63 …protected void scanAnnotatedMembers(Map<Class<? extends Annotation>, List<FrameworkMethod>> method… in scanAnnotatedMembers() 66 addToAnnotationLists(new FrameworkMethod(eachMethod), methodsForAnnotations); in scanAnnotatedMembers() 115 public List<FrameworkMethod> getAnnotatedMethods() { in getAnnotatedMethods() 116 List<FrameworkMethod> methods = collectValues(methodsForAnnotations); in getAnnotatedMethods() 125 public List<FrameworkMethod> getAnnotatedMethods( in getAnnotatedMethods() 281 for (FrameworkMethod each : getAnnotatedMethods(annotationClass)) { in collectAnnotatedMethodValues() 343 Comparator<FrameworkMethod> { [all …]
|
D | FrameworkMethod.java | 19 public class FrameworkMethod extends FrameworkMember<FrameworkMethod> { class 25 public FrameworkMethod(Method method) { in FrameworkMethod() method in FrameworkMethod 145 public boolean isShadowedBy(FrameworkMethod other) { 167 if (!FrameworkMethod.class.isInstance(obj)) { 170 return ((FrameworkMethod) obj).method.equals(method);
|
/external/libchrome/base/test/android/junit/src/org/chromium/base/test/params/ |
D | ParameterizedRunnerDelegateFactoryTest.java | 11 import org.junit.runners.model.FrameworkMethod; 37 private final List<FrameworkMethod> mParameterizedFrameworkMethodList; 40 List<FrameworkMethod> parameterizedFrameworkMethods) throws InitializationError { in BadExampleRunnerDelegate() 51 public List<FrameworkMethod> computeTestMethods() { in computeTestMethods() 110 List<FrameworkMethod> methods = in testGenerateParameterizedFrameworkMethod() 126 for (FrameworkMethod method : methods) { in testGenerateParameterizedFrameworkMethod()
|
/external/junit/src/main/java/org/junit/runners/parameterized/ |
D | BlockJUnit4ClassRunnerWithParameters.java | 15 import org.junit.runners.model.FrameworkMethod; 102 protected String testName(FrameworkMethod method) { in testName() 155 List<FrameworkMethod> befores = getTestClass() in withBeforeParams() 161 RunBeforeParams(Statement next, List<FrameworkMethod> befores) { in RunBeforeParams() 166 protected void invokeMethod(FrameworkMethod method) throws Throwable { in invokeMethod() 173 List<FrameworkMethod> afters = getTestClass() in withAfterParams() 179 RunAfterParams(Statement next, List<FrameworkMethod> afters) { in RunAfterParams() 184 protected void invokeMethod(FrameworkMethod method) throws Throwable { in invokeMethod()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/ |
D | RobolectricTestRunner.java | 24 import org.junit.runners.model.FrameworkMethod; 223 protected InstrumentationConfiguration createClassLoaderConfig(final FrameworkMethod method) { in createClassLoaderConfig() 231 protected void configureSandbox(Sandbox sandbox, FrameworkMethod method) { in configureSandbox() 282 protected List<FrameworkMethod> getChildren() { in getChildren() 283 List<FrameworkMethod> children = new ArrayList<>(); in getChildren() 284 for (FrameworkMethod frameworkMethod : super.getChildren()) { in getChildren() 329 @Override protected boolean shouldIgnore(FrameworkMethod method) { in shouldIgnore() 335 protected SdkEnvironment getSandbox(FrameworkMethod method) { in getSandbox() 347 …protected void beforeTest(Sandbox sandbox, FrameworkMethod method, Method bootstrappedMethod) thro… in beforeTest() 390 protected void afterTest(FrameworkMethod method, Method bootstrappedMethod) { in afterTest() [all …]
|
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/util/ |
D | SkipCheck.java | 9 import org.junit.runners.model.FrameworkMethod; 29 public abstract boolean shouldSkip(FrameworkMethod testMethod); in shouldSkip() 41 return shouldSkip(new FrameworkMethod(m)); in shouldSkip()
|