Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 522) sorted by relevance

12345678910>>...21

/dalvik/tests/021-string2/src/
DMain.java24 String test = "0123456789"; in main() local
31 Assert.assertTrue(test.equals(test)); in main()
32 Assert.assertTrue(test.equals(test1)); in main()
33 Assert.assertFalse(test.equals(test2)); in main()
35 Assert.assertEquals(test.compareTo(test1), 0); in main()
40 Assert.assertEquals(test.compareTo(sub), 0); in main()
41 Assert.assertEquals(sub.compareTo(test), 0); in main()
42 Assert.assertTrue(test.equals(sub)); in main()
43 Assert.assertTrue(sub.equals(test)); in main()
48 Assert.assertFalse(test.equals(blah)); in main()
[all …]
/dalvik/tests/010-instance/src/
DInstanceTest.java22 Object test; in main() local
24 test = x; in main()
25 System.out.println("x instanceof X (true): " + (test instanceof X)); in main()
26 System.out.println("x instanceof Y (false): " + (test instanceof Y)); in main()
27 test = y; in main()
28 System.out.println("y instanceof X (true): " + (test instanceof X)); in main()
29 System.out.println("y instanceof Y (true): " + (test instanceof Y)); in main()
31 test = xar; in main()
33 + (test instanceof Object)); in main()
35 + (test instanceof X)); in main()
[all …]
/dalvik/tests/004-annotations/
Dexpected.txt2 mapping is class [Landroid.test.anno.IntToString;
3 0='@android.test.anno.IntToString(from=0, to=NORMAL_FOCUS)'
4 1='@android.test.anno.IntToString(from=2, to=WEAK_FOCUS)'
7 annotations on TYPE class android.test.anno.SimplyNoted(2):
8 @android.test.anno.AnnoSimpleType()
9 interface android.test.anno.AnnoSimpleType
10 @android.test.anno.AnnoSimpleType2()
11 interface android.test.anno.AnnoSimpleType2
13 annotations on CTOR android.test.anno.SimplyNoted():
14 @android.test.anno.AnnoSimpleConstructor()
[all …]
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/
DSimpleDateFormatTest.java55 public void test(String pattern, Calendar cal, String expected, in test() method in SimpleDateFormatTest.TestFormat
485 TestFormat test = new TestFormat( in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() local
489 test.test(" G", cal, " AD", DateFormat.ERA_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
490 test.test(" GG", cal, " AD", DateFormat.ERA_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
491 test.test(" GGG", cal, " AD", DateFormat.ERA_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
492 test.test(" G", new GregorianCalendar(-1999, Calendar.JUNE, 2), " BC", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
495 test.test(" y", cal, " 99", DateFormat.YEAR_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
496 test.test(" yy", cal, " 99", DateFormat.YEAR_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
497 test.test(" yy", new GregorianCalendar(2001, Calendar.JUNE, 2), " 01", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
499 test.test(" yy", new GregorianCalendar(2000, Calendar.JUNE, 2), " 00", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
[all …]
/dalvik/libcore/dom/src/test/java/org/w3c/domts/
DDOMTestInnerClass.java27 private final DOMTestCase test; field in DOMTestInnerClass
29 public DOMTestInnerClass(DOMTestCase test) { in DOMTestInnerClass() argument
30 this.test = test; in DOMTestInnerClass()
34 test.wait(millisecond); in wait()
38 test.assertTrue(assertID, actual); in assertTrue()
42 test.assertFalse(assertID, actual); in assertFalse()
46 test.assertNull(assertID, actual); in assertNull()
50 test.assertNotNull(assertID, actual); in assertNotNull()
54 test.assertSame(assertID, expected, actual); in assertSame()
58 test.assertInstanceOf(assertID, cls, obj); in assertInstanceOf()
[all …]
DJUnitTestSuiteAdapter.java23 private DOMTestSuite test; field in JUnitTestSuiteAdapter
25 public JUnitTestSuiteAdapter(DOMTestSuite test) { in JUnitTestSuiteAdapter() argument
26 super(test.getTargetURI()); in JUnitTestSuiteAdapter()
27 this.test = test; in JUnitTestSuiteAdapter()
28 test.build(this); in JUnitTestSuiteAdapter()
32 DOMTestDocumentBuilderFactory factory = test.getFactory(); in addTest()
48 TestCase test = new JUnitTestCaseAdapter((DOMTestCase) domtest); in addTest() local
49 addTest(test); in addTest()
53 TestSuite test = new JUnitTestSuiteAdapter((DOMTestSuite) domtest); in addTest() local
54 addTest(test); in addTest()
DDOMTestFramework.java34 void fail(DOMTestCase test, String assertID); in fail() argument
36 void assertTrue(DOMTestCase test, String assertID, boolean actual); in assertTrue() argument
38 void assertFalse(DOMTestCase test, String assertID, boolean actual); in assertFalse() argument
40 void assertNull(DOMTestCase test, String assertID, Object actual); in assertNull() argument
42 void assertNotNull(DOMTestCase test, String assertID, Object actual); in assertNotNull() argument
45 DOMTestCase test, in assertSame() argument
51 DOMTestCase test, in assertInstanceOf() argument
57 DOMTestCase test, in assertSize() argument
63 DOMTestCase test, in assertSize() argument
69 DOMTestCase test, in assertSize() argument
[all …]
DJUnitTestCaseAdapter.java37 private DOMTestCase test; field in JUnitTestCaseAdapter
42 public JUnitTestCaseAdapter(DOMTestCase test) { in JUnitTestCaseAdapter() argument
43 super(test.getTargetURI()); in JUnitTestCaseAdapter()
44 test.setFramework(this); in JUnitTestCaseAdapter()
45 this.test = test; in JUnitTestCaseAdapter()
58 if (test == null) { in setName()
89 test = (DOMTestCase)constructor.newInstance(new Object[] { in setName()
92 test.setFramework(this); in setName()
164 test.runTest(); in runTest()
165 int mutationCount = test.getMutationCount(); in runTest()
[all …]
/dalvik/libcore/junit/src/main/java/junit/framework/
DTestResult.java33 public synchronized void addError(Test test, Throwable t) { in addError() argument
34 fErrors.addElement(new TestFailure(test, t)); in addError()
36 ((TestListener)e.nextElement()).addError(test, t); in addError()
43 public synchronized void addFailure(Test test, AssertionFailedError t) { in addFailure() argument
44 fFailures.addElement(new TestFailure(test, t)); in addFailure()
46 ((TestListener)e.nextElement()).addFailure(test, t); in addFailure()
70 public void endTest(Test test) { in endTest() argument
72 ((TestListener)e.nextElement()).endTest(test); in endTest()
102 protected void run(final TestCase test) { in run() argument
103 startTest(test); in run()
[all …]
DTestListener.java10 public void addError(Test test, Throwable t); in addError() argument
14 public void addFailure(Test test, AssertionFailedError t); in addFailure() argument
18 public void endTest(Test test); in endTest() argument
22 public void startTest(Test test); in startTest() argument
DTestSuite.java93 public void addTest(Test test) { in addTest() argument
94 fTests.addElement(test); in addTest()
128 Object test; in createTest() local
131 test= constructor.newInstance(new Object[0]); in createTest()
132 if (test instanceof TestCase) in createTest()
133 ((TestCase) test).setName(name); in createTest()
135 test= constructor.newInstance(new Object[]{name}); in createTest()
144 return (Test) test; in createTest()
164 Test test= (Test)e.nextElement(); in countTestCases() local
165 count= count + test.countTestCases(); in countTestCases()
[all …]
/dalvik/dx/src/junit/framework/
DTestResult.java33 public synchronized void addError(Test test, Throwable t) { in addError() argument
34 fErrors.addElement(new TestFailure(test, t)); in addError()
36 ((TestListener)e.nextElement()).addError(test, t); in addError()
43 public synchronized void addFailure(Test test, AssertionFailedError t) { in addFailure() argument
44 fFailures.addElement(new TestFailure(test, t)); in addFailure()
46 ((TestListener)e.nextElement()).addFailure(test, t); in addFailure()
70 public void endTest(Test test) { in endTest() argument
72 ((TestListener)e.nextElement()).endTest(test); in endTest()
102 protected void run(final TestCase test) { in run() argument
103 startTest(test); in run()
[all …]
DTestListener.java10 public void addError(Test test, Throwable t); in addError() argument
14 public void addFailure(Test test, AssertionFailedError t); in addFailure() argument
18 public void endTest(Test test); in endTest() argument
22 public void startTest(Test test); in startTest() argument
DTestSuite.java91 public void addTest(Test test) { in addTest() argument
92 fTests.addElement(test); in addTest()
126 Object test; in createTest() local
129 test= constructor.newInstance(new Object[0]); in createTest()
130 if (test instanceof TestCase) in createTest()
131 ((TestCase) test).setName(name); in createTest()
133 test= constructor.newInstance(new Object[]{name}); in createTest()
142 return (Test) test; in createTest()
162 Test test= (Test)e.nextElement(); in countTestCases() local
163 count= count + test.countTestCases(); in countTestCases()
[all …]
/dalvik/libcore/luni/src/test/java/com/google/coretests/
DCoreTestSuite.java169 private void addAndFlatten(Test test, int flags) { in addAndFlatten() argument
170 if (test instanceof TestSuite) { in addAndFlatten()
171 TestSuite suite = (TestSuite)test; in addAndFlatten()
182 } else if (test instanceof TestCase) { in addAndFlatten()
183 TestCase caze = (TestCase)test; in addAndFlatten()
241 fTests.add(test); in addAndFlatten()
247 test.getClass().getName() + " " + test.toString()); in addAndFlatten()
255 private boolean hasAnnotation(TestCase test, Class clazz) { in hasAnnotation() argument
257 Method method = test.getClass().getMethod(test.getName()); in hasAnnotation()
274 TestCase test = (TestCase)fTests.elementAt(i); in run() local
[all …]
DCoreTestResult.java95 boolean hasAnnotation(TestCase test, Class clazz) { in hasAnnotation() argument
97 Method method = test.getClass().getMethod(test.getName()); in hasAnnotation()
108 public void runProtected(final Test test, Protectable p) { in runProtected() argument
110 if (test instanceof TestCase) { in runProtected()
111 TestCase testCase = (TestCase)test; in runProtected()
142 addError(test, new CoreTestTimeout("Test timed out")); in runProtected()
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
DMockEnum2.java53 MockEnum2 test = (MockEnum2) arg0; in equals() local
54 if (str.equals(test.str) && i == test.i && samEnum == test.samEnum in equals()
55 && myStr.equals(test.myStr)) { in equals()
DMockEnum.java50 MockEnum test = (MockEnum) arg0; in equals() local
51 if (str.equals(test.str) && i == test.i && samEnum == test.samEnum) { in equals()
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
DSecurityPermissionTest.java67 SecurityPermission test = new SecurityPermission(name); in testCtor() local
68 assertEquals(name, test.getName()); in testCtor()
69 assertEquals("", test.getActions()); in testCtor()
70 test = new SecurityPermission(name, "#$!#12435"); in testCtor()
71 assertEquals(name, test.getName()); in testCtor()
72 assertEquals("", test.getActions()); in testCtor()
DPermissionTest.java80 Permission test = new RealPermission(name); in testCtor() local
81 assertEquals(name, test.getName()); in testCtor()
82 assertEquals("(" + test.getClass().getName() + " " + name + ")", test in testCtor()
98 final Permission test = new RealPermission("234234"); in testCheckGuard() local
102 test.checkGuard(this); in testCheckGuard()
107 if (p == test) { in testCheckGuard()
112 test.checkGuard(null); in testCheckGuard()
/dalvik/dx/tests/069-dex-source-position/
DBlort.java19 public static int test(int x) { in test() method in Blort
24 x = test(x - 1); // line 10 in test()
28 x += test(x - 2); // line 14 in test()
/dalvik/tests/033-class-init-deadlock/
Dexpected.txt1 Deadlock test starting.
4 Deadlock test interupting threads.
5 Deadlock test main thread bailing.
/dalvik/dx/src/junit/extensions/
DActiveTestSuite.java35 public void runTest(final Test test, final TestResult result) { in runTest() argument
41 test.run(result); in runTest()
43 ActiveTestSuite.this.runFinished(test); in runTest()
60 synchronized public void runFinished(Test test) { in runFinished() argument
/dalvik/libcore/junit/src/main/java/junit/extensions/
DActiveTestSuite.java35 public void runTest(final Test test, final TestResult result) { in runTest() argument
41 test.run(result); in runTest()
43 ActiveTestSuite.this.runFinished(test); in runTest()
60 synchronized public void runFinished(Test test) { in runFinished() argument
/dalvik/dx/src/junit/runner/
DBaseTestRunner.java24 public synchronized void startTest(Test test) { in startTest() argument
25 testStarted(test.toString()); in startTest()
55 public synchronized void endTest(Test test) { in endTest() argument
56 testEnded(test.toString()); in endTest()
59 public synchronized void addError(final Test test, final Throwable t) { in addError() argument
60 testFailed(TestRunListener.STATUS_ERROR, test, t); in addError()
63 public synchronized void addFailure(final Test test, final AssertionFailedError t) { in addFailure() argument
64 testFailed(TestRunListener.STATUS_FAILURE, test, t); in addFailure()
73 public abstract void testFailed(int status, Test test, Throwable t); in testFailed() argument
109 Test test= null; in getTest() local
[all …]

12345678910>>...21