/external/junit-params/src/main/java/junitparams/internal/parameters/ |
D | ParametersReader.java | 21 private final FrameworkMethod frameworkMethod; field in ParametersReader 24 public ParametersReader(Class<?> testClass, FrameworkMethod frameworkMethod) { in ParametersReader() argument 25 this.frameworkMethod = frameworkMethod; in ParametersReader() 28 new ParametersFromCustomProvider(frameworkMethod), in ParametersReader() 29 new ParametersFromValue(frameworkMethod), in ParametersReader() 30 new ParametersFromExternalClassProvideMethod(frameworkMethod), in ParametersReader() 31 new ParametersFromExternalClassMethod(frameworkMethod), in ParametersReader() 32 new ParametersFromTestClassMethod(frameworkMethod, testClass) in ParametersReader() 53 …throw new IllegalStateException(format(ILLEGAL_STATE_EXCEPTION_MESSAGE, frameworkMethod.getName())… in illegalState()
|
D | ParamsFromMethodCommon.java | 14 private FrameworkMethod frameworkMethod; field in ParamsFromMethodCommon 16 ParamsFromMethodCommon(FrameworkMethod frameworkMethod) { in ParamsFromMethodCommon() argument 17 this.frameworkMethod = frameworkMethod; in ParamsFromMethodCommon() 21 String methodAnnotation = frameworkMethod.getAnnotation(Parameters.class).method(); in paramsFromMethod() 45 return "parametersFor" + frameworkMethod.getName().substring(0, 1).toUpperCase() in defaultMethodName() 46 + this.frameworkMethod.getName().substring(1); in defaultMethodName() 134 if (frameworkMethod.getMethod().getParameterTypes().length != params.length) { in encapsulateParamsIntoArrayIfSingleParamsetPassed()
|
D | ParametersFromExternalClassMethod.java | 10 ParametersFromExternalClassMethod(FrameworkMethod frameworkMethod) { in ParametersFromExternalClassMethod() argument 11 this.paramsFromMethodCommon = new ParamsFromMethodCommon(frameworkMethod); in ParametersFromExternalClassMethod() 12 annotation = frameworkMethod.getAnnotation(Parameters.class); in ParametersFromExternalClassMethod()
|
D | ParametersFromTestClassMethod.java | 12 ParametersFromTestClassMethod(FrameworkMethod frameworkMethod, Class<?> testClass) { in ParametersFromTestClassMethod() argument 13 paramsFromMethodCommon = new ParamsFromMethodCommon(frameworkMethod); in ParametersFromTestClassMethod() 15 annotation = frameworkMethod.getAnnotation(Parameters.class); in ParametersFromTestClassMethod()
|
D | ParametersFromExternalClassProvideMethod.java | 16 ParametersFromExternalClassProvideMethod(FrameworkMethod frameworkMethod) { in ParametersFromExternalClassProvideMethod() argument 17 this.paramsFromMethodCommon = new ParamsFromMethodCommon(frameworkMethod); in ParametersFromExternalClassProvideMethod() 18 annotation = frameworkMethod.getAnnotation(Parameters.class); in ParametersFromExternalClassProvideMethod()
|
D | ParametersFromValue.java | 10 ParametersFromValue(FrameworkMethod frameworkMethod) { in ParametersFromValue() argument 11 parametersAnnotation = frameworkMethod.getAnnotation(Parameters.class); in ParametersFromValue()
|
D | ParametersFromCustomProvider.java | 13 public ParametersFromCustomProvider(FrameworkMethod frameworkMethod) { in ParametersFromCustomProvider() argument 14 frameworkMethodAnnotations = new FrameworkMethodAnnotations(frameworkMethod); in ParametersFromCustomProvider()
|
/external/junit-params/src/main/java/junitparams/internal/ |
D | TestMethod.java | 26 private FrameworkMethod frameworkMethod; field in TestMethod 35 this.frameworkMethod = method; in TestMethod() 38 parametersReader = new ParametersReader(testClass(), frameworkMethod); in TestMethod() 44 return frameworkMethod.getName(); in name() 50 for (FrameworkMethod frameworkMethod : testClass.getAnnotatedMethods(Test.class)) { in listFrom() 51 TestMethod testMethod = new TestMethod(frameworkMethod, testClass); in listFrom() 60 return frameworkMethod.hashCode(); in hashCode() 71 return frameworkMethod.getName().equals(testMethod.frameworkMethod.getName()); in hasTheSameNameAsFrameworkMethod() 75 Class<?>[] frameworkMethodParameterTypes = frameworkMethod.getMethod().getParameterTypes(); in hasTheSameParameterTypesAsFrameworkMethod() 76 … Class<?>[] testMethodParameterTypes = testMethod.frameworkMethod.getMethod().getParameterTypes(); in hasTheSameParameterTypesAsFrameworkMethod() [all …]
|
/external/junit-params/src/main/java/junitparams/internal/annotation/ |
D | FrameworkMethodAnnotations.java | 12 private final FrameworkMethod frameworkMethod; field in FrameworkMethodAnnotations 14 public FrameworkMethodAnnotations(FrameworkMethod frameworkMethod) { in FrameworkMethodAnnotations() argument 15 this.frameworkMethod = frameworkMethod; in FrameworkMethodAnnotations() 24 return frameworkMethod.getAnnotations(); in allAnnotations() 28 return frameworkMethod.getAnnotation(annotationType); in getAnnotation() 40 CustomParameters customParameters = frameworkMethod.getAnnotation(CustomParameters.class); in getCustomParameters() 45 for (Annotation annotation : frameworkMethod.getAnnotations()) { in getCustomParameters()
|
/external/vogar/src/vogar/target/junit/ |
D | ValidateTestMethodWhenRunBlockJUnit4ClassRunner.java | 48 protected Statement methodInvoker(final FrameworkMethod frameworkMethod, Object test) { in methodInvoker() argument 50 Statement statement = super.methodInvoker(frameworkMethod, test); in methodInvoker() 54 return new ValidateMethodStatement(frameworkMethod, statement); in methodInvoker() 61 private final FrameworkMethod frameworkMethod; field in ValidateTestMethodWhenRunBlockJUnit4ClassRunner.ValidateMethodStatement 64 public ValidateMethodStatement(FrameworkMethod frameworkMethod, Statement methodInvoker) { in ValidateMethodStatement() argument 65 this.frameworkMethod = frameworkMethod; in ValidateMethodStatement() 77 frameworkMethod.validatePublicVoidNoArg(false, errors); in validateFrameworkMethod()
|
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/util/ |
D | RestrictionSkipCheck.java | 35 public boolean shouldSkip(FrameworkMethod frameworkMethod) { in shouldSkip() argument 36 if (frameworkMethod == null) return true; in shouldSkip() 39 frameworkMethod.getMethod(), Restriction.class)) { in shouldSkip() 42 Log.i(TAG, "Test " + frameworkMethod.getDeclaringClass().getName() + "#" in shouldSkip() 43 + frameworkMethod.getName() + " skipped because of restriction " in shouldSkip()
|
D | MinAndroidSdkLevelSkipCheck.java | 28 public boolean shouldSkip(FrameworkMethod frameworkMethod) { in shouldSkip() argument 31 frameworkMethod.getMethod(), MinAndroidSdkLevel.class)) { in shouldSkip() 35 Log.i(TAG, "Test " + frameworkMethod.getDeclaringClass().getName() + "#" in shouldSkip() 36 + frameworkMethod.getName() + " is not enabled at SDK level " in shouldSkip()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/ |
D | RobolectricTestRunner.java | 284 for (FrameworkMethod frameworkMethod : super.getChildren()) { in getChildren() 286 Config config = getConfig(frameworkMethod.getMethod()); in getChildren() 296 frameworkMethod.getMethod(), in getChildren() 308 frameworkMethod.getMethod(), in getChildren() 322 getTestClass().getName() + "." + frameworkMethod.getMethod().getName() + in getChildren() 545 protected Class<?>[] getExtraShadows(FrameworkMethod frameworkMethod) { in getExtraShadows() argument 546 Config config = ((RobolectricFrameworkMethod) frameworkMethod).config; in getExtraShadows() 562 protected void internalAfterTest(FrameworkMethod frameworkMethod, Method method) { in internalAfterTest() argument 563 RobolectricFrameworkMethod roboMethod = (RobolectricFrameworkMethod) frameworkMethod; in internalAfterTest() 588 RobolectricFrameworkMethod roboMethod = (RobolectricFrameworkMethod) this.frameworkMethod; in createTest() [all …]
|
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/params/ |
D | ParameterizedFrameworkMethod.java | 53 for (FrameworkMethod frameworkMethod : frameworkMethods) { in wrapAllFrameworkMethods() 55 frameworkMethod.getMethod(), null, classParameterSetName)); in wrapAllFrameworkMethods()
|
/external/junit-params/src/main/java/junitparams/ |
D | JUnitParamsRunner.java | 419 for (InstanceFrameworkMethod frameworkMethod : methods) { in runChild() 420 frameworkMethod.run(methodBlockSupplier, notifier); in runChild()
|
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/ |
D | BaseJUnit4ClassRunner.java | 250 private void runPreTestHooks(FrameworkMethod frameworkMethod) { in runPreTestHooks() argument 251 Method testMethod = frameworkMethod.getMethod(); in runPreTestHooks()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/ |
D | TestRunnerSequenceTest.java | 170 @Override protected void configureSandbox(Sandbox sandbox, FrameworkMethod frameworkMethod) { in configureSandbox() argument 172 super.configureSandbox(sandbox, frameworkMethod); in configureSandbox()
|
/external/robolectric-shadows/junit/src/main/java/org/robolectric/internal/ |
D | SandboxTestRunner.java | 238 helperTestRunner.frameworkMethod = method; 310 public FrameworkMethod frameworkMethod;
|