Home
last modified time | relevance | path

Searched refs:testClass (Results 1 – 25 of 73) sorted by relevance

123

/external/vogar/src/vogar/target/junit/
DJunit4.java50 public static List<VogarTest> classToVogarTests(Class<?> testClass, String... args) { in classToVogarTests() argument
52 getSuiteMethods(result, testClass, args); in classToVogarTests()
56 private static void getSuiteMethods(List<VogarTest> out, Class<?> testClass, String... args) { in getSuiteMethods() argument
59 Collection<Object[]> argCollection = findParameters(testClass); in getSuiteMethods()
63 for (Method m : testClass.getMethods()) { in getSuiteMethods()
69 out.add(new IgnoredTest(testClass, m)); in getSuiteMethods()
71 addAllParameterizedTests(out, testClass, m, argCollection); in getSuiteMethods()
73 out.add(new ConfigurationError(testClass.getName() + "#" + m.getName(), in getSuiteMethods()
80 addAllParameterizedTests(out, testClass, testClass.getMethod(arg), in getSuiteMethods()
83 out.add(new ConfigurationError(testClass.getName() + "#" + arg, e)); in getSuiteMethods()
[all …]
DJunit3.java58 public static List<Test> classToJunitTests(Class<?> testClass) { in classToJunitTests() argument
61 Method suiteMethod = testClass.getMethod("suite"); in classToJunitTests()
66 if (TestCase.class.isAssignableFrom(testClass)) { in classToJunitTests()
68 for (Method m : testClass.getMethods()) { in classToJunitTests()
73 TestCase testCase = (TestCase) testClass.newInstance(); in classToJunitTests()
86 throw new IllegalArgumentException("Unknown test class: " + testClass); in classToJunitTests()
95 public static List<VogarTest> classToVogarTests(Class<?> testClass, String... args) { in classToVogarTests() argument
97 getSuiteMethods(result, testClass, args); in classToVogarTests()
111 private static void getSuiteMethods(List<VogarTest> out, Class<?> testClass, String... args) { in getSuiteMethods() argument
115 if (TestCase.class.isAssignableFrom(testClass)) { in getSuiteMethods()
[all …]
DJUnitRunner.java42 private Class<?> testClass; field in JUnitRunner
54 Class<?> testClass, AtomicReference<String> skipPastReference, in init() argument
57 this.testClass = testClass; in init()
67 if (Junit3.isJunit3Test(testClass)) { in run()
69 ? Junit3.classToVogarTests(testClass, qualification) in run()
70 : Junit3.classToVogarTests(testClass, args); in run()
71 } else if (Junit4.isJunit4Test(testClass)) { in run()
73 ? Junit4.classToVogarTests(testClass, qualification) in run()
74 : Junit4.classToVogarTests(testClass, args); in run()
76 throw new AssertionFailedError("Unknown JUnit type: " + testClass.getName()); in run()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/share/debuggee/
DInvokeMethodDebuggee.java64 static testClass checkClass = new testClass();
65 static testClass[] checkClassArray = {new testClass()};
66 static testClass[][] checkClassArray2 = {{new testClass()}, {new testClass()}};
70 testClass tc, testClass[] atc, testClass[][] aatc) { in testMethod3()
102 class testClass { class
/external/robolectric/src/main/java/com/xtremelabs/robolectric/
DRobolectricTestRunner.java112 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/mockito/src/org/mockito/
DMockitoAnnotations.java89 public static void initMocks(Object testClass) { in initMocks() argument
90 if (testClass == null) { in initMocks()
95 Class<?> clazz = testClass.getClass(); in initMocks()
102 scanDeprecatedWay(annotationEngine, testClass, clazz); in initMocks()
108 annotationEngine.process(testClass.getClass(), testClass); in initMocks() local
111 …static void scanDeprecatedWay(AnnotationEngine annotationEngine, Object testClass, Class<?> clazz)… in scanDeprecatedWay() argument
115 processAnnotationDeprecatedWay(annotationEngine, testClass, field); in scanDeprecatedWay()
120 …static void processAnnotationDeprecatedWay(AnnotationEngine annotationEngine, Object testClass, Fi… in processAnnotationDeprecatedWay() argument
128 new FieldSetter(testClass, field).set(mock); in processAnnotationDeprecatedWay()
/external/mockito/src/org/mockito/internal/util/reflection/
DFieldInitializer.java161 private Object testClass; field in FieldInitializer.NoArgConstructorInstantiator
168 NoArgConstructorInstantiator(Object testClass, Field field) { in NoArgConstructorInstantiator() argument
169 this.testClass = testClass; in NoArgConstructorInstantiator()
182 new FieldSetter(testClass, field).set(newFieldInstance); in instantiate()
184 return new FieldInitializationReport(field.get(testClass), true, false); in instantiate()
212 private Object testClass; field in FieldInitializer.ParameterizedConstructorInstantiator
225 …ParameterizedConstructorInstantiator(Object testClass, Field field, ConstructorArgumentResolver ar… in ParameterizedConstructorInstantiator() argument
226 this.testClass = testClass; in ParameterizedConstructorInstantiator()
240 new FieldSetter(testClass, field).set(newFieldInstance); in instantiate()
242 return new FieldInitializationReport(field.get(testClass), false, true); in instantiate()
/external/junit/src/org/junit/internal/builders/
DAnnotatedBuilder.java21 public Runner runnerForClass(Class<?> testClass) throws Exception { in runnerForClass() argument
22 RunWith annotation= testClass.getAnnotation(RunWith.class); in runnerForClass()
24 return buildRunner(annotation.value(), testClass); in runnerForClass()
29 Class<?> testClass) throws Exception { in buildRunner() argument
32 new Object[] { testClass }); in buildRunner()
37 new Object[] { testClass, fSuiteBuilder }); in buildRunner()
DJUnit3Builder.java12 public Runner runnerForClass(Class<?> testClass) throws Throwable { in runnerForClass() argument
13 if (isPre4Test(testClass)) in runnerForClass()
14 return new JUnit38ClassRunner(testClass); in runnerForClass()
18 boolean isPre4Test(Class<?> testClass) { in isPre4Test() argument
19 return junit.framework.TestCase.class.isAssignableFrom(testClass); in isPre4Test()
DIgnoredBuilder.java12 public Runner runnerForClass(Class<?> testClass) { in runnerForClass() argument
13 if (testClass.getAnnotation(Ignore.class) != null) in runnerForClass()
14 return new IgnoredClassRunner(testClass); in runnerForClass()
DJUnit4Builder.java12 public Runner runnerForClass(Class<?> testClass) throws Throwable { in runnerForClass() argument
13 return new BlockJUnit4ClassRunner(testClass); in runnerForClass()
DSuiteMethodBuilder.java18 public boolean hasSuiteMethod(Class<?> testClass) { in hasSuiteMethod() argument
20 testClass.getMethod("suite"); in hasSuiteMethod()
DIgnoredClassRunner.java13 public IgnoredClassRunner(Class<?> testClass) { in IgnoredClassRunner() argument
14 fTestClass= testClass; in IgnoredClassRunner()
/external/vogar/src/vogar/target/
DCaliperRunner.java33 private Class<?> testClass; field in CaliperRunner
36 Class<?> testClass, AtomicReference<String> skipPastReference, in init() argument
40 this.testClass = testClass; in init()
45 monitor.outcomeStarted(this, testClass.getName(), actionName); in run()
46 String[] arguments = ObjectArrays.concat(testClass.getName(), args); in run()
/external/junit/src/org/junit/internal/requests/
DClassRequest.java13 public ClassRequest(Class<?> testClass, boolean canUseSuiteMethod) { in ClassRequest() argument
14 fTestClass= testClass; in ClassRequest()
18 public ClassRequest(Class<?> testClass) { in ClassRequest() argument
19 this(testClass, true); in ClassRequest()
/external/junit/src/org/junit/runner/
DComputer.java28 public Runner runnerForClass(Class<?> testClass) throws Throwable { in getSuite()
29 return getRunner(builder, testClass); in getSuite()
37 protected Runner getRunner(RunnerBuilder builder, Class<?> testClass) throws Throwable {
38 return builder.runnerForClass(testClass);
/external/robolectric/src/test/java/com/xtremelabs/robolectric/
DWithTestDefaultsRunner.java13 public WithTestDefaultsRunner(Class<?> testClass) throws InitializationError { in WithTestDefaultsRunner() argument
14 …super(testClass, new RobolectricConfig(resourceFile("TestAndroidManifest.xml"), resourceFile("res"… in WithTestDefaultsRunner()
16 …public WithTestDefaultsRunner(Class<?> testClass,DatabaseMap databaseMap) throws InitializationErr… in WithTestDefaultsRunner() argument
17 …super(testClass, new RobolectricConfig(resourceFile("TestAndroidManifest.xml"), resourceFile("res"… in WithTestDefaultsRunner()
DInstrumentDetectorTest.java65 public RunnerForTesting(final Class<?> testClass) throws InitializationError { in RunnerForTesting() argument
67 testClass, in RunnerForTesting()
83 public RunnerForTestingThatWillPass(final Class<?> testClass) throws InitializationError { in RunnerForTestingThatWillPass() argument
85 testClass, in RunnerForTestingThatWillPass()
DWithoutTestDefaultsRunner.java8 public WithoutTestDefaultsRunner(Class<?> testClass) throws InitializationError { in WithoutTestDefaultsRunner() argument
9 super(testClass); in WithoutTestDefaultsRunner()
DWithCustomClassListTestRunner.java10 …public WithCustomClassListTestRunner(@SuppressWarnings("rawtypes") Class testClass) throws Initial… in WithCustomClassListTestRunner() argument
11 …super(testClass, new RobolectricConfig(resourceFile("TestAndroidManifest.xml"), resourceFile("res"… in WithCustomClassListTestRunner()
/external/mockito/src/org/mockito/internal/matchers/apachecommons/
DEqualsBuilder.java235 Class testClass; in reflectionEquals() local
237 testClass = lhsClass; in reflectionEquals()
240 testClass = rhsClass; in reflectionEquals()
243 testClass = rhsClass; in reflectionEquals()
246 testClass = lhsClass; in reflectionEquals()
254 reflectionAppend(lhs, rhs, testClass, equalsBuilder, testTransients, excludeFields); in reflectionEquals()
255 while (testClass.getSuperclass() != null && testClass != reflectUpToClass) { in reflectionEquals()
256 testClass = testClass.getSuperclass(); in reflectionEquals()
257 reflectionAppend(lhs, rhs, testClass, equalsBuilder, testTransients, excludeFields); in reflectionEquals()
/external/junit/src/org/junit/runners/model/
DRunnerBuilder.java48 public abstract Runner runnerForClass(Class<?> testClass) throws Throwable; in runnerForClass() argument
55 public Runner safeRunnerForClass(Class<?> testClass) { in safeRunnerForClass() argument
57 return runnerForClass(testClass); in safeRunnerForClass()
59 return new ErrorReportingRunner(testClass, e); in safeRunnerForClass()
/external/junit/src/org/junit/experimental/theories/internal/
DAssignments.java29 List<ParameterSignature> unassigned, TestClass testClass) { in Assignments() argument
32 fClass= testClass; in Assignments()
40 TestClass testClass) throws Exception { in allUnassigned() argument
42 signatures= ParameterSignature.signatures(testClass in allUnassigned()
46 signatures, testClass); in allUnassigned()
/external/junit/src/junit/textui/
DTestRunner.java61 static public void run(Class<? extends TestCase> testClass) { in run() argument
62 run(new TestSuite(testClass)); in run()
187 Class<? extends TestCase> testClass= loadSuiteClass(testCase).asSubclass(TestCase.class); in runSingleMethod() local
188 Test test= TestSuite.createTest(testClass, method); in runSingleMethod()
/external/glide/testutil/src/main/java/com/bumptech/glide/testutil/
DTestResourceUtil.java20 public static InputStream openResource(Class testClass, String subPath) { in openResource() argument
21 return testClass.getResourceAsStream("/" + subPath); in openResource()

123