/dalvik/libcore/regex/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
ModeTest.java | 24 import junit.framework.TestCase; 34 public class ModeTest extends TestCase { 50 public void testCase() throws PatternSyntaxException {
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
TestMethod.java | 19 import junit.framework.TestCase; 27 * Represents a test to be run. Can be constructed without instantiating the TestCase or even 34 private final Class<? extends TestCase> enclosingClass; 36 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { 40 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { 46 public TestMethod(TestCase testCase) { 47 this(testCase.getName(), testCase.getClass()); 67 public Class<? extends TestCase> getEnclosingClass() [all...] |
/cts/tools/host/src/com/android/cts/ |
HostUnitTestRunner.java | 27 import junit.framework.TestCase; 38 private TestCase mTestCase; 80 public TestCase loadTestCase(final String jarPath, 94 if ((testMethodName != null) && TestCase.class.isAssignableFrom(testClass)) { 131 private TestCase buildTestMethod(Class testClass, 134 TestCase testCase = (TestCase) testClass.newInstance(); 135 testCase.setName(testMethodName); 136 return testCase; [all...] |
TestSuite.java | 31 private Collection<TestCase> mTestCases; 36 private TestCase mCurrentTestCase; 51 mTestCases = new ArrayList<TestCase>(); 73 public void addTestCase(final TestCase tc) { 91 public Collection<TestCase> getTestCases() { 98 * @return The suite name of this TestCase. 107 * @return The full suite name of this TestCase. 144 for (TestCase testCase : mTestCases) { 145 test = testCase.searchTest(testName) [all...] |
/frameworks/base/test-runner/src/android/test/ |
TestCaseUtil.java | 22 import junit.framework.TestCase; 64 * If we want to run a single TestCase method only, we must not 68 if (test instanceof TestCase && 69 ((TestCase)test).getName() == null) { 101 * Additional check necessary: If a TestCase contains a suite() 102 * method that returns a TestSuite including the TestCase itself, 124 if (test instanceof TestCase) { 125 TestCase testCase = (TestCase) test [all...] |
TestBrowserControllerImpl.java | 23 import junit.framework.TestCase; 68 } else if (TestCase.class.isAssignableFrom(test.getClass())) { 69 TestCase testCase = (TestCase) test; 70 testName = testCase.getClass().getName(); 72 String testMethodName = testCase.getName();
|
AndroidTestRunner.java | 25 import junit.framework.TestCase; 38 private List<TestCase> mTestCases; 51 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); 52 mTestCases = Lists.newArrayList(testCase); 64 mTestCases = (List<TestCase>) TestCaseUtil.getTests(test, true); 92 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { 94 TestCase testCase = (TestCase) testClass.newInstance() [all...] |
/frameworks/base/test-runner/tests/src/android/test/ |
TestCaseUtilTest.java | 20 import junit.framework.TestCase; 25 public class TestCaseUtilTest extends TestCase { 38 TestCase testCase = new OneTestTestCaseWithSuite(); 40 List<String> testCaseNames = TestCaseUtil.getTestCaseNames(testCase, false); 65 public static class OneTestTestCase extends TestCase { 70 public static class OneTestTestCaseWithSuite extends TestCase { 72 TestCase testCase = new OneTestTestCase(); 73 testCase.setName("testOne") [all...] |
/dalvik/libcore/luni/src/test/java/com/google/coretests/ |
CoreTestResult.java | 22 import junit.framework.TestCase; 92 * Checks whether the given TestCase method has the given annotation. 95 boolean hasAnnotation(TestCase test, Class clazz) { 110 if (test instanceof TestCase) { 111 TestCase testCase = (TestCase)test; 114 boolean invert = hasAnnotation(testCase, KnownFailure.class) && 118 boolean isolate = hasAnnotation(testCase, SideEffect.class) && 123 testCase, this, p, invert, isolate) [all...] |
CoreTestSuite.java | 25 import junit.framework.TestCase; 145 private TestCase fVictim; 153 * be a TestCase or TestSuite). The CoreTestSuite will be a flattened and 157 public CoreTestSuite(Test suite, int flags, int step, TestCase victim) { 168 * Adds the given ordinary JUnit Test (which may be a TestCase or TestSuite) 185 } else if (test instanceof TestCase) { 186 TestCase testCase = (TestCase)test; 189 boolean isAndroidOnly = hasAnnotation(testCase, AndroidOnly.class) [all...] |
StatTestRunner.java | 33 * TestRunner expects the name of a TestCase class as argument. 81 * Runs a suite extracted from a TestCase subclass. 182 String testCase= ""; 201 testCase= extractClassName(args[++i]); 205 testCase= args[i]; 208 if (testCase.equals("")) 209 throw new Exception("Usage: TestRunner [-wait] testCaseName, where name is the name of the TestCase class"); 212 Test suite= getTest(testCase);
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/ |
InstrumentationTestSuiteBuilderTest.java | 25 import junit.framework.TestCase; 34 public class InstrumentationTestSuiteBuilderTest extends TestCase { 112 TestCase testCase = (TestCase) test; 113 return testCase.getClass().getSimpleName() + "." + testCase.getName();
|
UnitTestSuiteBuilderTest.java | 24 import junit.framework.TestCase; 32 public class UnitTestSuiteBuilderTest extends TestCase { 105 TestCase testCase = (TestCase) test; 106 return testCase.getClass().getSimpleName() + "." + testCase.getName();
|
/dalvik/dx/src/junit/textui/ |
TestRunner.java | 14 * TestRunner expects the name of a TestCase class as argument. 54 * Runs a suite extracted from a TestCase subclass. 153 String testCase= ""; 160 testCase= extractClassName(args[++i]); 164 testCase= args[i]; 167 if (testCase.equals("")) 168 throw new Exception("Usage: TestRunner [-wait] testCaseName, where name is the name of the TestCase class"); 171 Test suite= getTest(testCase);
|
/dalvik/libcore/luni/src/test/java/junit/textui/ |
TestRunner.java | 14 * TestRunner expects the name of a TestCase class as argument. 54 * Runs a suite extracted from a TestCase subclass. 153 String testCase= ""; 160 testCase= extractClassName(args[++i]); 164 testCase= args[i]; 167 if (testCase.equals("")) 168 throw new Exception("Usage: TestRunner [-wait] testCaseName, where name is the name of the TestCase class"); 171 Test suite= getTest(testCase);
|
/external/icu4c/test/letest/ |
gendata.cpp | 145 const UXMLElement *testCase; 148 while((testCase = root->nextChildElement(tc)) != NULL) { 149 if (testCase->getTagName().compare(test_case) == 0) { 150 char *id = getCString(testCase->getAttribute(id_attr)); 151 char *script = getCString(testCase->getAttribute(script_attr)); 152 char *lang = getCString(testCase->getAttribute(lang_attr)); 187 while((element = testCase->nextChildElement(ec)) != NULL) {
|
xmlreader.cpp | 163 const UXMLElement *testCase; 166 while((testCase = root->nextChildElement(tc)) != NULL) { 167 if (testCase->getTagName().compare(test_case) == 0) { 168 char *id = getCString(testCase->getAttribute(id_attr)); 169 char *script = getCString(testCase->getAttribute(script_attr)); 170 char *lang = getCString(testCase->getAttribute(lang_attr)); 199 while((element = testCase->nextChildElement(ec)) != NULL) {
|
letest.cpp | 596 const UXMLElement *testCase; 599 while((testCase = root->nextChildElement(tc)) != NULL) { 600 if (testCase->getTagName().compare(test_case) == 0) { 601 char *id = getCString(testCase->getAttribute(id_attr)); 602 char *script = getCString(testCase->getAttribute(script_attr)); 603 char *lang = getCString(testCase->getAttribute(lang_attr)); 633 while((element = testCase->nextChildElement(ec)) != NULL) { [all...] |
/external/junit/src/junit/textui/ |
TestRunner.java | 19 * TestRunner expects the name of a TestCase class as argument. 59 * Runs a suite extracted from a TestCase subclass. 158 String testCase= ""; 166 testCase= extractClassName(args[++i]); 170 testCase= arg.substring(0, lastIndex); 175 testCase= args[i]; 178 if (testCase.equals("")) 179 throw new Exception("Usage: TestRunner [-wait] testCaseName, where name is the name of the TestCase class"); 183 return runSingleMethod(testCase, method, wait); 184 Test suite= getTest(testCase); [all...] |
/frameworks/base/test-runner/src/junit/textui/ |
TestRunner.java | 14 * TestRunner expects the name of a TestCase class as argument. 54 * Runs a suite extracted from a TestCase subclass. 153 String testCase= ""; 160 testCase= extractClassName(args[++i]); 164 testCase= args[i]; 167 if (testCase.equals("")) 168 throw new Exception("Usage: TestRunner [-wait] testCaseName, where name is the name of the TestCase class"); 171 Test suite= getTest(testCase);
|
/external/icu4c/test/iotest/ |
iotest.cpp | 191 const DataMap *testCase; 218 for(i=0; testData->nextCase(testCase, errorCode); ++i) { 233 tempStr=testCase->getString("format", errorCode); 235 tempStr=testCase->getString("result", errorCode); 237 tempStr=testCase->getString("argument", errorCode); 247 switch (testCase->getString("argumentType", errorCode)[0]) { 285 log_err("Unknown type %c for test %d\n", testCase->getString("argumentType", errorCode)[0], i); 359 const DataMap *testCase; 386 for(i=0; testData->nextCase(testCase, errorCode); ++i) { 400 tempStr=testCase->getString("format", errorCode) [all...] |
/cts/tools/host/test/com/android/cts/ |
TestSessionBuilderTests.java | 93 + " <TestCase name=\"" + caseName + "\"" + " priority=\"mandatory\">\n" 98 + " </TestCase>\n" 128 TestCase testCase = testSuite.getTestCases().iterator().next(); 129 assertEquals(caseName, testCase.getName()); 130 assertEquals("mandatory", testCase.getPriority()); 132 Test test = testCase.getTests().iterator().next(); 187 + " <TestCase name=\"" + caseName + "\"" + " priority=\"mandatory\">\n" 192 + " </TestCase>\n" 273 + " <TestCase name=\"" + caseName + "\"" + " priority=\"mandatory\">\n [all...] |
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ |
ObjectTest.java | 29 public class ObjectTest extends junit.framework.TestCase { 474 int testCase = CASE_WAIT; 477 testCase = option; 483 switch(testCase) {
|
/external/icu4c/test/intltest/ |
convtest.cpp | 91 const DataMap *testCase; 100 for(i=0; testData->nextCase(testCase, errorCode); ++i) { 110 s=testCase->getString("charset", errorCode); 114 cc.bytes=testCase->getBinary(cc.bytesLength, "bytes", errorCode); 115 unicode=testCase->getString("unicode", errorCode); 120 cc.offsets=testCase->getIntVector(offsetsLength, "offsets", errorCode); 129 cc.finalFlush= 0!=testCase->getInt28("flush", errorCode); 130 cc.fallbacks= 0!=testCase->getInt28("fallbacks", errorCode); 132 s=testCase->getString("errorCode", errorCode); 147 s=testCase->getString("callback", errorCode) [all...] |
csdetest.cpp | 511 const UXMLElement *testCase; 514 while((testCase = root->nextChildElement(tc)) != NULL) { 515 if (testCase->getTagName().compare(test_case) == 0) { 516 const UnicodeString *id = testCase->getAttribute(id_attr); 517 const UnicodeString *encodings = testCase->getAttribute(enc_attr); 518 const UnicodeString text = testCase->getText(TRUE);
|