/external/vogar/test/vogar/target/junit4/ |
D | TestRunnerJUnit4Test.java | 32 @TestRunnerProperties(testClass = ChangeDefaultLocaleTest.class) 46 @TestRunnerProperties(testClass = SimpleTest2.class) 59 @TestRunnerProperties(testClass = SimpleTest2.class, profile = true) 73 @TestRunnerProperties(testClass = SimpleTest2.class) 76 Class<?> testClass = testRunnerRule.testClass(); in testRunner_SkipPast() local 77 String failingTestName = testClass.getName() + "#simple1"; in testRunner_SkipPast() 87 @TestRunnerProperties(testClass = SimpleTest2.class) 90 Class<?> testClass = testRunnerRule.testClass(); in testRunner_SkipPastAll() local 91 String failingTestName = testClass.getName() + "#other"; in testRunner_SkipPastAll() 98 @TestRunnerProperties(testClass = SimpleTest2.class) [all …]
|
/external/vogar/test/vogar/target/junit3/ |
D | TestRunnerJUnit3Test.java | 35 @TestRunnerProperties(testClass = JUnit3Test.class, runnerType = RunnerType.JUNIT) 46 @TestRunnerProperties(testClass = ChangeDefaultLocaleTest.class) 60 @TestRunnerProperties(testClass = SimpleTest2.class) 73 @TestRunnerProperties(testClass = SimpleTest2.class, profile = true) 87 @TestRunnerProperties(testClass = SimpleTest2.class) 90 Class<?> testClass = testRunnerRule.testClass(); in testRunner_SkipPast() local 91 String failingTestName = testClass.getName() + "#testSimple2"; in testRunner_SkipPast() 100 @TestRunnerProperties(testClass = SimpleTest2.class) 103 Class<?> testClass = testRunnerRule.testClass(); in testRunner_SkipPastAll() local 104 String failingTestName = testClass.getName() + "#other"; in testRunner_SkipPastAll() [all …]
|
/external/vogar/src/vogar/target/junit/junit3/ |
D | TestCaseRunnerFactory.java | 75 Class<? extends TestCase> testClass, String methodName, Annotation[] annotations) { in createTest() argument 76 return new RunTestCaseStatement(testClass, methodName, annotations); in createTest() 81 Class<? extends Test> testClass, String name, Throwable throwable) { in createFailingTest() argument 83 testClass, name, testClass.getAnnotations()); in createFailingTest() 89 Class<? extends TestCase> testClass, List<DescribableStatement> tests) { in createSuite() argument 92 return new ParentStatementRunner(testClass, tests, runnerParams); in createSuite() 95 testClass, "initializationError", testClass.getAnnotations()); in createSuite() 106 private static TestCase createTestCase(Class<? extends TestCase> testClass, String name) in createTestCase() argument 110 constructor = testClass.getConstructor(String.class); in createTestCase() 112 constructor = testClass.getConstructor(); in createTestCase() [all …]
|
D | TestCaseTransformer.java | 54 public S createSuite(Class<? extends TestCase> testClass) { in createSuite() argument 55 List<T> tests = testsFromTestCase(testClass); in createSuite() 56 return factory.createSuite(testClass, tests); in createSuite() 60 Class<? extends TestCase> testClass, String methodName, Annotation[] annotations) { in createTest() argument 61 return factory.createTest(testClass, methodName, annotations); in createTest() 64 private T createWarning(Class<? extends Test> testClass, String name, Throwable throwable) { in createWarning() argument 65 return factory.createFailingTest(testClass, name, throwable); in createWarning() 68 private List<T> testsFromTestCase(final Class<? extends TestCase> testClass) { in testsFromTestCase() argument 75 validateTestClass(testClass); in testsFromTestCase() 77 tests.add(createWarning(testClass, "warning", e)); in testsFromTestCase() [all …]
|
D | AlternateSuiteMethodBuilder.java | 64 public Runner runnerForClass(Class<?> testClass) throws Throwable { in runnerForClass() argument 65 if (new ClassAnalyzer(testClass).hasMethod(true, Test.class, "suite")) { in runnerForClass() 68 test = SuiteMethod.testFromSuiteMethod(testClass); in runnerForClass() 71 testClass, "suite", testClass.getAnnotations()); in runnerForClass() 77 .transform(testClass, test); in runnerForClass()
|
/external/testng/src/main/java/org/testng/internal/ |
D | NoOpTestClass.java | 37 public NoOpTestClass(ITestClass testClass) { in NoOpTestClass() argument 38 m_testClass= testClass.getRealClass(); in NoOpTestClass() 39 m_beforeSuiteMethods= testClass.getBeforeSuiteMethods(); in NoOpTestClass() 40 m_beforeTestConfMethods= testClass.getBeforeTestConfigurationMethods(); in NoOpTestClass() 41 m_beforeGroupsMethods= testClass.getBeforeGroupsMethods(); in NoOpTestClass() 42 m_beforeClassMethods= testClass.getBeforeClassMethods(); in NoOpTestClass() 43 m_beforeTestMethods= testClass.getBeforeTestMethods(); in NoOpTestClass() 44 m_afterSuiteMethods= testClass.getAfterSuiteMethods(); in NoOpTestClass() 45 m_afterTestConfMethods= testClass.getAfterTestConfigurationMethods(); in NoOpTestClass() 46 m_afterGroupsMethods= testClass.getAfterGroupsMethods(); in NoOpTestClass() [all …]
|
D | TestMethodWorker.java | 106 ITestClass testClass = testMethod.getTestClass(); in run() local 108 invokeBeforeClassMethods(testClass, testMthdInst); in run() 115 invokeAfterClassMethods(testClass, testMthdInst); in run() 146 protected void invokeBeforeClassMethods(ITestClass testClass, IMethodInstance mi) { in invokeBeforeClassMethods() argument 148 listener.onBeforeClass(testClass, mi); in invokeBeforeClassMethods() 156 ITestNGMethod[] classMethods= testClass.getBeforeClassMethods(); in invokeBeforeClassMethods() 169 synchronized(testClass) { in invokeBeforeClassMethods() 170 Set<Object> instances= invokedBeforeClassMethods.get(testClass); in invokeBeforeClassMethods() 173 invokedBeforeClassMethods.put(testClass, instances); in invokeBeforeClassMethods() 178 m_invoker.invokeConfigurations(testClass, in invokeBeforeClassMethods() [all …]
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/share/debuggee/ |
D | InvokeMethodDebuggee.java | 64 static testClass checkClass = new testClass(); 65 static testClass[] checkClassArray = {new testClass()}; 66 static testClass[][] checkClassArray2 = {{new testClass()}, {new testClass()}}; 71 testClass tc, testClass[] atc, testClass[][] aatc) { in testMethod3() 104 class testClass { class
|
/external/junit/src/main/java/org/junit/validator/ |
D | AnnotationsValidator.java | 33 public List<Exception> validateTestClass(TestClass testClass) { in validateTestClass() argument 37 .validateTestClass(testClass); in validateTestClass() 46 abstract Iterable<T> getAnnotatablesForTestClass(TestClass testClass); in getAnnotatablesForTestClass() argument 51 public List<Exception> validateTestClass(TestClass testClass) { in validateTestClass() argument 53 for (T annotatable : getAnnotatablesForTestClass(testClass)) { in validateTestClass() 81 Iterable<TestClass> getAnnotatablesForTestClass(TestClass testClass) { in getAnnotatablesForTestClass() argument 82 return singletonList(testClass); in getAnnotatablesForTestClass() 87 AnnotationValidator validator, TestClass testClass) { in validateAnnotatable() argument 88 return validator.validateAnnotatedClass(testClass); in validateAnnotatable() 96 TestClass testClass) { in getAnnotatablesForTestClass() argument [all …]
|
/external/junit/src/main/java/org/junit/runners/parameterized/ |
D | TestWithParameters.java | 20 private final TestClass testClass; field in TestWithParameters 24 public TestWithParameters(String name, TestClass testClass, in TestWithParameters() argument 27 notNull(testClass, "The test class is missing."); in TestWithParameters() 30 this.testClass = testClass; in TestWithParameters() 39 return testClass; in getTestClass() 50 result = prime * result + testClass.hashCode(); in hashCode() 68 && testClass.equals(other.testClass); in equals() 73 return testClass.getName() + " '" + name + "' with parameters " in toString()
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/ |
D | RobolectricTestRunner.java | 112 public RobolectricTestRunner(final Class<?> testClass) throws InitializationError { in RobolectricTestRunner() argument 113 this(testClass, new RobolectricConfig( in RobolectricTestRunner() 127 public RobolectricTestRunner(final Class<?> testClass, RobolectricClassLoader classLoader) in RobolectricTestRunner() argument 129 this(testClass, in RobolectricTestRunner() 146 …protected RobolectricTestRunner(final Class<?> testClass, final RobolectricConfig robolectricConfi… in RobolectricTestRunner() argument 148 this(testClass, in RobolectricTestRunner() 163 …protected RobolectricTestRunner(Class<?> testClass, RobolectricConfig robolectricConfig, DatabaseM… in RobolectricTestRunner() argument 165 this(testClass, in RobolectricTestRunner() 178 …public RobolectricTestRunner(final Class<?> testClass, final File androidProjectRoot) throws Initi… in RobolectricTestRunner() argument 179 this(testClass, new RobolectricConfig(androidProjectRoot)); in RobolectricTestRunner() [all …]
|
/external/junit-params/src/main/java/junitparams/internal/ |
D | TestMethod.java | 28 private Class<?> testClass; field in TestMethod 34 public TestMethod(FrameworkMethod method, TestClass testClass) { in TestMethod() argument 36 this.testClass = testClass.getJavaClass(); in TestMethod() 38 parametersReader = new ParametersReader(testClass(), frameworkMethod); in TestMethod() 47 public static List<FrameworkMethod> listFrom(TestClass testClass) { in listFrom() argument 50 for (FrameworkMethod frameworkMethod : testClass.getAnnotatedMethods(Test.class)) { in listFrom() 51 TestMethod testMethod = new TestMethod(frameworkMethod, testClass); in listFrom() 80 private Class<?> testClass() { in testClass() method in TestMethod 81 return testClass; in testClass() 109 return Description.createTestDescription(testClass().getName(), name, uniqueMethodId); in getDescription() [all …]
|
D | InvokeNonParameterisedMethod.java | 12 private final Object testClass; field in InvokeNonParameterisedMethod 14 InvokeNonParameterisedMethod(FrameworkMethod testMethod, Object testClass) { in InvokeNonParameterisedMethod() argument 16 this.testClass = testClass; in InvokeNonParameterisedMethod() 21 testMethod.invokeExplosively(testClass); in evaluate()
|
/external/testng/src/main/java/org/testng/junit/ |
D | JUnitTestRunner.java | 183 protected Test getTest(Class testClass, String... methods) { in getTest() argument 187 Constructor c = testClass.getConstructor(String.class); in getTest() 192 runFailed(testClass, "abstract class " + ex); in getTest() 194 runFailed(testClass, "constructor is not public " + ex); in getTest() 196 runFailed(testClass, "actual and formal parameters differ " + ex); in getTest() 198 runFailed(testClass, "exception while instatiating test for method '" + m + "' " + ex); in getTest() 202 runFailed(testClass, "no constructor accepting String argument found " + ex); in getTest() 204 runFailed(testClass, "security exception " + ex); in getTest() 210 suiteMethod = testClass.getMethod(SUITE_METHODNAME, new Class[0]); in getTest() 215 return new TestSuite(testClass); in getTest() [all …]
|
/external/junit-params/src/main/java/junitparams/internal/parameters/ |
D | ParametersFromTestClassMethod.java | 9 private Class<?> testClass; field in ParametersFromTestClassMethod 12 ParametersFromTestClassMethod(FrameworkMethod frameworkMethod, Class<?> testClass) { in ParametersFromTestClassMethod() argument 14 this.testClass = testClass; in ParametersFromTestClassMethod() 20 return paramsFromMethodCommon.paramsFromMethod(testClass); in getParameters() 27 ….method().isEmpty() || paramsFromMethodCommon.containsDefaultParametersProvidingMethod(testClass)); in isApplicable()
|
/external/testng/src/test/java/test/annotationtransformer/ |
D | MyParamTransformer.java | 14 public void transform(ITestAnnotation annotation, Class testClass, in transform() argument 16 if (!onlyOneNonNull(testClass, testConstructor, testMethod)) { in transform() 21 …public static boolean onlyOneNonNull(Class testClass, Constructor testConstructor, Method testMeth… in onlyOneNonNull() argument 22 return ((testClass != null && testConstructor == null && testMethod == null) || in onlyOneNonNull() 23 (testClass == null && testConstructor != null && testMethod == null) || in onlyOneNonNull() 24 (testClass == null && testConstructor == null && testMethod != null) ); in onlyOneNonNull()
|
/external/junit/src/main/java/org/junit/internal/runners/ |
D | ErrorReportingRunner.java | 16 private final Class<?> testClass; field in ErrorReportingRunner 18 public ErrorReportingRunner(Class<?> testClass, Throwable cause) { in ErrorReportingRunner() argument 19 if (testClass == null) { in ErrorReportingRunner() 22 this.testClass = testClass; in ErrorReportingRunner() 28 Description description = Description.createSuiteDescription(testClass); in getDescription() 58 return Description.createTestDescription(testClass, in describeCause()
|
D | MethodValidator.java | 26 private TestClass testClass; field in MethodValidator 28 public MethodValidator(TestClass testClass) { in MethodValidator() argument 29 this.testClass = testClass; in MethodValidator() 37 List<Method> methods = testClass.getAnnotatedMethods(Test.class); in validateInstanceMethods() 63 testClass.getConstructor(); in validateNoArgConstructor() 71 List<Method> methods = testClass.getAnnotatedMethods(annotation); in validateTestMethods()
|
D | TestMethod.java | 22 private TestClass testClass; field in TestMethod 24 public TestMethod(Method method, TestClass testClass) { in TestMethod() argument 26 this.testClass = testClass; in TestMethod() 60 return testClass.getAnnotatedMethods(Before.class); in getBefores() 64 return testClass.getAnnotatedMethods(After.class); in getAfters()
|
D | ClassRoadie.java | 21 private TestClass testClass; field in ClassRoadie 25 public ClassRoadie(RunNotifier notifier, TestClass testClass, in ClassRoadie() argument 28 this.testClass = testClass; in ClassRoadie() 54 List<Method> befores = testClass.getBefores(); in runBefores() 70 List<Method> afters = testClass.getAfters(); in runAfters()
|
/external/mockito/src/main/java/org/mockito/internal/util/reflection/ |
D | FieldInitializer.java | 175 private final Object testClass; field in FieldInitializer.NoArgConstructorInstantiator 182 NoArgConstructorInstantiator(Object testClass, Field field) { in NoArgConstructorInstantiator() argument 183 this.testClass = testClass; in NoArgConstructorInstantiator() 196 setField(testClass, field,newFieldInstance); in instantiate() 198 return new FieldInitializationReport(field.get(testClass), true, false); in instantiate() 226 private final Object testClass; field in FieldInitializer.ParameterizedConstructorInstantiator 255 …ParameterizedConstructorInstantiator(Object testClass, Field field, ConstructorArgumentResolver ar… in ParameterizedConstructorInstantiator() argument 256 this.testClass = testClass; in ParameterizedConstructorInstantiator() 270 setField(testClass, field,newFieldInstance); in instantiate() 272 return new FieldInitializationReport(field.get(testClass), false, true); in instantiate()
|
/external/junit/src/main/java/org/junit/internal/builders/ |
D | JUnit3Builder.java | 9 public Runner runnerForClass(Class<?> testClass) throws Throwable { in runnerForClass() argument 10 if (isPre4Test(testClass)) { in runnerForClass() 11 return new JUnit38ClassRunner(testClass); in runnerForClass() 16 boolean isPre4Test(Class<?> testClass) { in isPre4Test() argument 17 return junit.framework.TestCase.class.isAssignableFrom(testClass); in isPre4Test()
|
D | AnnotatedBuilder.java | 81 public Runner runnerForClass(Class<?> testClass) throws Exception { in runnerForClass() argument 82 for (Class<?> currentTestClass = testClass; currentTestClass != null; in runnerForClass() 86 return buildRunner(annotation.value(), testClass); in runnerForClass() 102 Class<?> testClass) throws Exception { in buildRunner() argument 104 return runnerClass.getConstructor(Class.class).newInstance(testClass); in buildRunner() 108 RunnerBuilder.class).newInstance(testClass, suiteBuilder); in buildRunner()
|
/external/vogar/src/vogar/target/ |
D | CaliperTargetRunner.java | 32 private final Class<?> testClass; field in CaliperTargetRunner 35 public CaliperTargetRunner(TargetMonitor monitor, boolean profile, Class<?> testClass, in CaliperTargetRunner() argument 39 this.testClass = testClass; in CaliperTargetRunner() 44 monitor.outcomeStarted(testClass.getName()); in run() 46 .add(testClass.getName()) in run()
|
/external/junit/src/main/java/org/junit/runners/ |
D | ParentRunner.java | 64 private final TestClass testClass; field in ParentRunner 82 protected ParentRunner(Class<?> testClass) throws InitializationError { in ParentRunner() argument 83 this.testClass = createTestClass(testClass); in ParentRunner() 87 protected TestClass createTestClass(Class<?> testClass) { in createTestClass() argument 88 return new TestClass(testClass); in createTestClass() 214 List<FrameworkMethod> befores = testClass in withBeforeClasses() 228 List<FrameworkMethod> afters = testClass in withAfterClasses() 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() 303 return testClass.getName(); [all …]
|