Home
last modified time | relevance | path

Searched refs:TEST_STRING (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/test/java/util/Scanner/
DEncodingTest.java57 static final String TEST_STRING = "abc \u0100 \u0101 \u0555 \u07FD \u07FF"; field in EncodingTest
88 prepareFile(file1, TEST_STRING); in test()
89 prepareFile(file2, TEST_STRING); in test()
93 String result1 = s1.findInLine(TEST_STRING); in test()
94 String result2 = s2.findInLine(TEST_STRING); in test()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DAbstractExecutorServiceTest.java111 assertSame(TEST_STRING, result); in testSubmitCallable()
129 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
131 assertSame(TEST_STRING, result); in testSubmitRunnable2()
143 return TEST_STRING; in testSubmitPrivilegedAction()
146 assertSame(TEST_STRING, future.get()); in testSubmitPrivilegedAction()
164 return TEST_STRING; in testSubmitPrivilegedExceptionAction()
167 assertSame(TEST_STRING, future.get()); in testSubmitPrivilegedExceptionAction()
336 assertSame(TEST_STRING, result); in testInvokeAny5()
411 assertSame(TEST_STRING, future.get()); in testInvokeAll5()
504 assertSame(TEST_STRING, result);
[all …]
DExecutorCompletionServiceTest.java115 assertSame(TEST_STRING, f.get()); in testTake()
145 assertSame(TEST_STRING, f.get()); in testPoll1()
165 assertSame(TEST_STRING, f.get()); in testPoll2()
177 return TEST_STRING; in testPollReturnsNull()
186 assertSame(TEST_STRING, cs.take().get()); in testPollReturnsNull()
205 if (cs.take().get() == TEST_STRING) in testTaskAssortment()
DForkJoinPoolTest.java467 assertSame(TEST_STRING, future.get()); in testSubmitCallable()
492 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
493 assertSame(TEST_STRING, future.get()); in testSubmitRunnable2()
504 public Object run() { return TEST_STRING; }}); in testSubmitPrivilegedAction()
510 assertSame(TEST_STRING, future.get()); in testSubmitPrivilegedAction()
523 public Object run() { return TEST_STRING; }}); in testSubmitPrivilegedExceptionAction()
529 assertSame(TEST_STRING, future.get()); in testSubmitPrivilegedExceptionAction()
716 assertSame(TEST_STRING, result); in testInvokeAny6()
793 assertSame(TEST_STRING, future.get()); in testInvokeAll5()
887 assertSame(TEST_STRING, result);
[all …]
DScheduledExecutorSubclassTest.java915 assertSame(TEST_STRING, result); in testSubmitCallable()
937 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
939 assertSame(TEST_STRING, result); in testSubmitRunnable2()
1014 assertSame(TEST_STRING, result); in testInvokeAny5()
1089 assertSame(TEST_STRING, future.get()); in testInvokeAll5()
1182 assertSame(TEST_STRING, result);
1275 assertSame(TEST_STRING, future.get());
DScheduledExecutorTest.java863 assertSame(TEST_STRING, result); in testSubmitCallable()
885 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
887 assertSame(TEST_STRING, result); in testSubmitRunnable2()
962 assertSame(TEST_STRING, result); in testInvokeAny5()
1037 assertSame(TEST_STRING, future.get()); in testInvokeAll5()
1130 assertSame(TEST_STRING, result);
1224 assertSame(TEST_STRING, future.get());
DThreadPoolExecutorTest.java1462 assertSame(TEST_STRING, result); in testSubmitCallable()
1490 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
1492 assertSame(TEST_STRING, result); in testSubmitRunnable2()
1582 assertSame(TEST_STRING, result); in testInvokeAny5()
1672 assertSame(TEST_STRING, future.get()); in testInvokeAll5()
1784 assertSame(TEST_STRING, result);
1896 assertSame(TEST_STRING, future.get());
DThreadPoolExecutorSubclassTest.java1460 assertSame(TEST_STRING, result); in testSubmitCallable()
1488 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
1490 assertSame(TEST_STRING, result); in testSubmitRunnable2()
1580 assertSame(TEST_STRING, result); in testInvokeAny5()
1670 assertSame(TEST_STRING, future.get()); in testInvokeAll5()
1782 assertSame(TEST_STRING, result);
1894 assertSame(TEST_STRING, future.get());
DJSR166TestCase.java1734 public static final String TEST_STRING = "a test string";
1738 public StringTask() { this(TEST_STRING); }
1749 return TEST_STRING;
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractExecutorServiceTest.java88 assertSame(TEST_STRING, result); in testSubmitCallable()
106 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
108 assertSame(TEST_STRING, result); in testSubmitRunnable2()
120 return TEST_STRING; in testSubmitPrivilegedAction()
123 assertSame(TEST_STRING, future.get()); in testSubmitPrivilegedAction()
141 return TEST_STRING; in testSubmitPrivilegedExceptionAction()
144 assertSame(TEST_STRING, future.get()); in testSubmitPrivilegedExceptionAction()
313 assertSame(TEST_STRING, result); in testInvokeAny5()
388 assertSame(TEST_STRING, future.get()); in testInvokeAll5()
481 assertSame(TEST_STRING, result);
[all …]
DForkJoinPoolTest.java449 assertSame(TEST_STRING, future.get()); in testSubmitCallable()
474 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
475 assertSame(TEST_STRING, future.get()); in testSubmitRunnable2()
486 public Object run() { return TEST_STRING; }}); in testSubmitPrivilegedAction()
492 assertSame(TEST_STRING, future.get()); in testSubmitPrivilegedAction()
505 public Object run() { return TEST_STRING; }}); in testSubmitPrivilegedExceptionAction()
511 assertSame(TEST_STRING, future.get()); in testSubmitPrivilegedExceptionAction()
698 assertSame(TEST_STRING, result); in testInvokeAny6()
775 assertSame(TEST_STRING, future.get()); in testInvokeAll5()
869 assertSame(TEST_STRING, result);
[all …]
DScheduledExecutorSubclassTest.java888 assertSame(TEST_STRING, result); in testSubmitCallable()
910 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
912 assertSame(TEST_STRING, result); in testSubmitRunnable2()
987 assertSame(TEST_STRING, result); in testInvokeAny5()
1062 assertSame(TEST_STRING, future.get()); in testInvokeAll5()
1155 assertSame(TEST_STRING, result);
1248 assertSame(TEST_STRING, future.get());
DScheduledExecutorTest.java837 assertSame(TEST_STRING, result); in testSubmitCallable()
859 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
861 assertSame(TEST_STRING, result); in testSubmitRunnable2()
936 assertSame(TEST_STRING, result); in testInvokeAny5()
1011 assertSame(TEST_STRING, future.get()); in testInvokeAll5()
1104 assertSame(TEST_STRING, result);
1198 assertSame(TEST_STRING, future.get());
DThreadPoolExecutorTest.java1445 assertSame(TEST_STRING, result); in testSubmitCallable()
1473 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
1475 assertSame(TEST_STRING, result); in testSubmitRunnable2()
1565 assertSame(TEST_STRING, result); in testInvokeAny5()
1655 assertSame(TEST_STRING, future.get()); in testInvokeAll5()
1767 assertSame(TEST_STRING, result);
1879 assertSame(TEST_STRING, future.get());
DThreadPoolExecutorSubclassTest.java1438 assertSame(TEST_STRING, result); in testSubmitCallable()
1466 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
1468 assertSame(TEST_STRING, result); in testSubmitRunnable2()
1558 assertSame(TEST_STRING, result); in testInvokeAny5()
1648 assertSame(TEST_STRING, future.get()); in testInvokeAll5()
1760 assertSame(TEST_STRING, result);
1872 assertSame(TEST_STRING, future.get());
DExecutorCompletionServiceTest.java137 assertSame(TEST_STRING, f.get()); in testPoll1()
DJSR166TestCase.java1462 public static final String TEST_STRING = "a test string";
1466 public StringTask() { this(TEST_STRING); }
1477 return TEST_STRING;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DWrappedCharBufferTest2.java24 protected static final String TEST_STRING = "123456789abcdef12345"; field in WrappedCharBufferTest2
28 buf = CharBuffer.wrap(TEST_STRING); in setUp()
39 String str = TEST_STRING; in testWrappedCharSequence_IllegalArg()
/libcore/ojluni/src/test/java/io/FileReader/
DConstructorTest.java52 static final String TEST_STRING = "abc \u0100 \u0101 \u0555 \u07FD \u07FF"; field in ConstructorTest
82 prepareFile(file1, TEST_STRING, charset); in test()
83 prepareFile(file2, TEST_STRING, charset); in test()
/libcore/ojluni/src/test/java/io/FileWriter/
DConstructorTest.java53 static final String TEST_STRING = "abc \u0100 \u0101 \u0555 \u07FD \u07FF"; field in ConstructorTest
87 writeWithFileWriter(type, file1, TEST_STRING, charset); in test()
88 writeWithOutputStreamWriter(type, file2, TEST_STRING, charset); in test()