HomeSort by relevance Sort by last modified time
    Searched refs:testClass (Results 1 - 25 of 186) sorted by null

1 2 3 4 5 6 7 8

  /frameworks/base/test-runner/src/junit/runner/
LoadingTestCollector.java 25 Class testClass= classFromFile(classFileName);
26 return (testClass != null) && isTestClass(testClass);
43 boolean isTestClass(Class testClass) {
44 if (hasSuiteMethod(testClass))
46 if (Test.class.isAssignableFrom(testClass) &&
47 Modifier.isPublic(testClass.getModifiers()) &&
48 hasPublicConstructor(testClass))
53 boolean hasSuiteMethod(Class testClass) {
55 testClass.getMethod(BaseTestRunner.SUITE_METHODNAME, new Class[0])
    [all...]
  /frameworks/testing/androidtestlib/src/com/android/test/runner/junit3/
AndroidJUnit3Builder.java 43 public Runner runnerForClass(Class<?> testClass) throws Throwable {
44 if (mSkipExecution && isJUnit3TestCase(testClass)) {
45 return new NonExecutingJUnit3ClassRunner(testClass);
46 } else if (isAndroidTestCase(testClass)) {
47 return new AndroidJUnit3ClassRunner(testClass, mBundle, mInstr);
48 } else if (isInstrumentationTestCase(testClass)) {
49 return new AndroidJUnit3ClassRunner(testClass, mBundle, mInstr);
50 } else if (isBundleTest(testClass)) {
51 return new AndroidJUnit3ClassRunner(testClass, mBundle, mInstr);
56 boolean isJUnit3TestCase(Class<?> testClass) {
    [all...]
  /external/junit/src/org/junit/internal/builders/
JUnit3Builder.java 12 public Runner runnerForClass(Class<?> testClass) throws Throwable {
13 if (isPre4Test(testClass))
14 return new JUnit38ClassRunner(testClass);
18 boolean isPre4Test(Class<?> testClass) {
19 return junit.framework.TestCase.class.isAssignableFrom(testClass);
IgnoredBuilder.java 12 public Runner runnerForClass(Class<?> testClass) {
13 if (testClass.getAnnotation(Ignore.class) != null)
14 return new IgnoredClassRunner(testClass);
JUnit4Builder.java 12 public Runner runnerForClass(Class<?> testClass) throws Throwable {
13 return new BlockJUnit4ClassRunner(testClass);
IgnoredClassRunner.java 13 public IgnoredClassRunner(Class<?> testClass) {
14 fTestClass= testClass;
SuiteMethodBuilder.java 18 public boolean hasSuiteMethod(Class<?> testClass) {
20 testClass.getMethod("suite");
AnnotatedBuilder.java 12 private static final String CONSTRUCTOR_ERROR_FORMAT= "Custom runner class %s should have a public constructor with signature %s(Class testClass)";
21 public Runner runnerForClass(Class<?> testClass) throws Exception {
22 RunWith annotation= testClass.getAnnotation(RunWith.class);
24 return buildRunner(annotation.value(), testClass);
29 Class<?> testClass) throws Exception {
32 new Object[] { testClass });
37 new Object[] { testClass, fSuiteBuilder });
  /external/junit/src/org/junit/internal/requests/
ClassRequest.java 13 public ClassRequest(Class<?> testClass, boolean canUseSuiteMethod) {
14 fTestClass= testClass;
18 public ClassRequest(Class<?> testClass) {
19 this(testClass, true);
  /external/junit/src/org/junit/runner/
Computer.java 28 public Runner runnerForClass(Class<?> testClass) throws Throwable {
29 return getRunner(builder, testClass);
35 * Create a single-class runner for {@code testClass}, using {@code builder}
37 protected Runner getRunner(RunnerBuilder builder, Class<?> testClass) throws Throwable {
38 return builder.runnerForClass(testClass);
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/
WithTestDefaultsRunner.java 13 public WithTestDefaultsRunner(Class<?> testClass) throws InitializationError {
14 super(testClass, new RobolectricConfig(resourceFile("TestAndroidManifest.xml"), resourceFile("res"), resourceFile("assets")));
16 public WithTestDefaultsRunner(Class<?> testClass,DatabaseMap databaseMap) throws InitializationError {
17 super(testClass, new RobolectricConfig(resourceFile("TestAndroidManifest.xml"), resourceFile("res"), resourceFile("assets")), databaseMap);
WithCustomClassListTestRunner.java 10 public WithCustomClassListTestRunner(@SuppressWarnings("rawtypes") Class testClass) throws InitializationError {
11 super(testClass, new RobolectricConfig(resourceFile("TestAndroidManifest.xml"), resourceFile("res"), resourceFile("assets")));
WithoutTestDefaultsRunner.java 8 public WithoutTestDefaultsRunner(Class<?> testClass) throws InitializationError {
9 super(testClass);
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/
EclipseTestCollector.java 56 Class<?> testClass = getClass(filePath, expectedPackage);
57 if (isTestClass(testClass)) {
65 suite.addTestSuite((Class<? extends TestCase>)testClass);
79 protected boolean isTestClass(Class<?> testClass) {
80 return TestCase.class.isAssignableFrom(testClass) &&
81 Modifier.isPublic(testClass.getModifiers()) &&
82 hasPublicConstructor(testClass);
89 protected boolean hasPublicConstructor(Class<?> testClass) {
98 TestSuite.getTestConstructor((Class<? extends TestCase>) testClass);
UnitTests.java 56 protected boolean isTestClass(Class<?> testClass) {
57 return super.isTestClass(testClass) &&
58 !testClass.getPackage().getName().startsWith(FuncTests.FUNC_TEST_PACKAGE);
  /external/mockito/src/org/mockito/
MockitoAnnotations.java 84 * Initializes objects annotated with Mockito annotations for given testClass:
89 public static void initMocks(Object testClass) {
90 if (testClass == null) {
91 throw new MockitoException("testClass cannot be null. For info how to use @Mock annotations see examples in javadoc for MockitoAnnotations class");
95 Class<?> clazz = testClass.getClass();
102 scanDeprecatedWay(annotationEngine, testClass, clazz);
108 annotationEngine.process(testClass.getClass(), testClass);
111 static void scanDeprecatedWay(AnnotationEngine annotationEngine, Object testClass, Class<?> clazz) {
115 processAnnotationDeprecatedWay(annotationEngine, testClass, field)
    [all...]
  /development/tools/hosttestlib/src/com/android/hosttest/
DeviceTestSuite.java 33 public DeviceTestSuite(Class testClass) {
34 super(testClass);
45 public void addTestSuite(Class testClass) {
46 addTest(new DeviceTestSuite(testClass));
  /external/chromium_org/third_party/icu/source/tools/ctestfw/unicode/
testlog.h 34 testClass(callingTestClass), testName(callingTestName) {}
42 TestLog &testClass;
  /external/icu4c/tools/ctestfw/unicode/
testlog.h 34 testClass(callingTestClass), testName(callingTestName) {}
42 TestLog &testClass;
  /frameworks/testing/androidtestlib/src/com/android/test/runner/junit4/
AndroidJUnit4Builder.java 46 public Runner runnerForClass(Class<?> testClass) throws Throwable {
48 return new NonExecutingJUnit4ClassRunner(testClass);
50 if (hasInjectedFields(testClass)) {
51 return new AndroidJUnit4ClassRunner(testClass, mInstrumentation, mBundle);
56 private boolean hasInjectedFields(Class<?> testClass) {
59 Class<?> superClass = testClass;
  /frameworks/base/test-runner/src/android/test/
AndroidTestRunner.java 50 Class testClass = loadTestClass(testClassName);
52 if (shouldRunSingleTestMethod(testMethodName, testClass)) {
53 TestCase testCase = buildSingleTestMethod(testClass, testMethodName);
55 mTestClassName = testClass.getSimpleName();
57 setTest(getTest(testClass), testClass);
65 private void setTest(Test test, Class<? extends Test> testClass) {
67 if (TestSuite.class.isAssignableFrom(testClass)) {
70 mTestClassName = testClass.getSimpleName();
94 private TestCase buildSingleTestMethod(Class testClass, String testMethodName)
    [all...]
  /external/chromium_org/third_party/icu/source/test/intltest/
uobjtest.h 35 UObject *testClass(UObject *obj,
  /external/icu4c/test/intltest/
uobjtest.h 35 UObject *testClass(UObject *obj,
  /external/junit/src/org/junit/runners/model/
RunnerBuilder.java 28 * public TextFileSuite(Class testClass, RunnerBuilder builder) {
44 * @param testClass class to be run
48 public abstract Runner runnerForClass(Class<?> testClass) throws Throwable;
52 * @param testClass class to be run
55 public Runner safeRunnerForClass(Class<?> testClass) {
57 return runnerForClass(testClass);
59 return new ErrorReportingRunner(testClass, e);
  /frameworks/testing/androidtestlib/src/com/android/test/runner/
AndroidRunnerBuilder.java 44 public Runner runnerForClass(Class<?> testClass) throws Throwable {
45 Runner runner = mAndroidJUnit3Builder.safeRunnerForClass(testClass);
49 runner = mAndroidJUnit4Builder.safeRunnerForClass(testClass);
53 return super.runnerForClass(testClass);

Completed in 1862 milliseconds

1 2 3 4 5 6 7 8