/libcore/luni/src/test/java/libcore/java/io/ |
D | OldWriterTest.java | 40 String testString = "My Test String"; in test_appendCharSequence() local 42 tobj.append(testString); in test_appendCharSequence() 43 assertEquals("Wrong stuff written!", testString, tobj.toString()); in test_appendCharSequence() 45 tobj.append(testString); in test_appendCharSequence() 53 String testString = "My Test String"; in test_appendCharSequenceIntInt() local 55 testString = "0123456789abcdefghijABCDEFGHIJ"; in test_appendCharSequenceIntInt() 56 tobj.append(testString, 0, 5); in test_appendCharSequenceIntInt() 58 tobj.append(testString, 10, 15); in test_appendCharSequenceIntInt() 60 tobj.append(testString, 20, 30); in test_appendCharSequenceIntInt() 63 tobj.append(testString, 30, 31); in test_appendCharSequenceIntInt() [all …]
|
D | OldPipedOutputStreamTest.java | 74 static final String testString = "Lorem ipsum dolor sit amet,\n" + field in OldPipedOutputStreamTest 77 static final int testLength = testString.length(); 161 out.write(testString.getBytes(), 0, 10); in test_flush() 165 testString.substring(0, 10), reader.read(10)); in test_flush() 172 out.write(testString.getBytes(), 0, 5); in test_write$BII() 181 out.write(testString.getBytes(), -1, 10); in test_write$BII() 188 out.write(testString.getBytes(), 0, -1); in test_write$BII() 195 out.write(testString.getBytes(), 5, testString.length()); in test_write$BII() 206 out.write(testString.getBytes(), 0, testString.length()); in test_write$BII() 209 testString, reader.read(testString.length())); in test_write$BII() [all …]
|
D | OldCharArrayWriterTest.java | 94 String testString = "My Test String"; in test_appendLjava_langCharSequenceII() local 99 writer.append(testString, -1, 0); in test_appendLjava_langCharSequenceII() 105 writer.append(testString, 0, -1); in test_appendLjava_langCharSequenceII() 111 writer.append(testString, 1, 0); in test_appendLjava_langCharSequenceII() 117 writer.append(testString, 1, testString.length() + 1); in test_appendLjava_langCharSequenceII() 123 writer.append(testString, 1, 3); in test_appendLjava_langCharSequenceII() 126 testString.substring(1, 3), writer.toString()); in test_appendLjava_langCharSequenceII()
|
D | OldBufferedWriterTest.java | 34 …public String testString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_java_io_Buffere… field in OldBufferedWriterTest 71 bw.write(testString); in test_close() 76 assertFalse("Test 2: Write after close.", sw.toString().equals(testString)); in test_close() 127 char[] testCharArray = testString.toCharArray(); in test_write$CII() 131 testString.substring(500, 1500))); in test_write$CII() 148 char[] charArray = testString.toCharArray(); in test_write$CII_Exception() 249 bw.write(testString); in test_writeLjava_lang_StringII() 252 testString)); in test_writeLjava_lang_StringII() 273 bw.write(testString, -1, 1); in test_writeLjava_lang_StringII_Exception() 280 bw.write(testString, 1, testString.length()); in test_writeLjava_lang_StringII_Exception() [all …]
|
D | OldOutputStreamWriterTest.java | 38 …public String testString = "This is a test message with Unicode characters. \u4e2d\u56fd is China'… field in OldOutputStreamWriterTest 248 char[] buf = new char[testString.length()]; in test_flush() 249 osw.write(testString, 0, testString.length()); in test_flush() 254 new String(buf, 0, buf.length).equals(testString)); in test_flush() 339 char[] chars = testString.toCharArray(); in test_write$CII() 422 "hi" + testString, baos.toString("utf-8")); in test_write$CII() 443 for (int j = 0; j < testString.length(); j++) { in test_writeI() 444 writer.write(testString.charAt(j)); in test_writeI() 513 writer.write(testString, 1, testString.length()); in test_writeLjava_lang_StringII() 520 writer.write(testString, 0, testString.length() + 1); in test_writeLjava_lang_StringII() [all …]
|
D | OldStringReaderTest.java | 25 String testString = "This is a test string"; field in OldStringReaderTest 30 sr = new StringReader(testString); in test_markI() 39 char[] buf = new char[testString.length()]; in test_read$CII() 40 sr = new StringReader(testString); in test_read$CII() 54 sr.read(buf, 1, testString.length()); in test_read$CII()
|
D | OldBufferedReaderTest.java | 39 …String testString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_java_io_BufferedOutput… field in OldBufferedReaderTest 43 br = new BufferedReader(new Support_StringReader(testString)); in test_ConstructorLjava_io_Reader() 50 br = new BufferedReader(new Support_StringReader(testString), 0); in test_ConstructorLjava_io_ReaderI() 54 br = new BufferedReader(new Support_StringReader(testString), 1024); in test_ConstructorLjava_io_ReaderI() 61 br = new BufferedReader(new Support_StringReader(testString)); in test_close() 86 br = new BufferedReader(new Support_StringReader(testString)); in test_markI() 91 buf = new char[testString.length()]; in test_markI() 93 assertTrue("Failed to set mark properly", testString.substring(500, in test_markI() 99 br = new BufferedReader(new Support_StringReader(testString), 800); in test_markI() 139 br = new BufferedReader(new Support_StringReader(testString)); in test_markSupported() [all …]
|
D | OldDataOutputStreamTest.java | 40 private static final String testString = "Lorem ipsum dolor sit amet,\n" + field in OldDataOutputStreamTest 44 private static final int testLength = testString.length(); 74 os.write(testString.getBytes(), 5, testLength - 7); in test_write$BII() 84 testString.substring(5, testLength - 2))); in test_write$BII() 139 os.writeBytes(testString); in test_writeBytesLjava_lang_String() 147 new String(rbuf, 0, testLength).equals(testString)); in test_writeBytesLjava_lang_String() 151 os.writeBytes(testString); in test_writeBytesLjava_lang_String()
|
D | OldRandomAccessFileTest.java | 43 static final String testString = "Lorem ipsum dolor sit amet,\n" + field in OldRandomAccessFileTest 46 static final int testLength = testString.length(); 190 raf.write(testString.getBytes()); in test_getChannel() 218 raf.write(testString.getBytes(), 0, testLength); in test_getFilePointer() 236 raf.write(testString.getBytes()); in test_length() 253 byte[] testBuf = testString.getBytes(); in test_read_write() 255 for (i = 0; i < testString.length(); i++) { in test_read_write() 266 for (i = 0; i < testString.length(); i++) { in test_read_write() 293 fos.write(testString.getBytes(), 0, testLength); in test_read$B() 302 assertEquals("Test 2: Incorrect bytes read. ", testString, in test_read$B() [all …]
|
D | OldPipedWriterTest.java | 27 static final String testString = "Lorem ipsum..."; field in OldPipedWriterTest 28 static final int testLength = testString.length(); 105 assertEquals("Test 3: Incorrect character string received.", testString, in test_ConstructorLjava_io_PipedReader() 147 assertEquals("Test 3: Incorrect character string received.", testString, in test_connectLjava_io_PipedReader() 165 assertEquals("Test 1: Flush failed. ", testString, in test_flush() 196 pw.write(testBuf, 5, testString.length()); in test_write$CII() 261 testString.getChars(0, testLength, testBuf, 0); in setUp()
|
D | OldInputStreamTest.java | 25 public static final String testString = "Lorem ipsum dolor sit amet,\n" + field in OldInputStreamTest 38 input = testString.getBytes(); in MockInputStream() 88 byte[] ref = testString.getBytes(); in test_read$B() 168 byte[] ref = testString.getBytes(); in test_read$BII() 224 byte[] ref = testString.getBytes(); in test_skipL()
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | PatternTest.java | 294 String testString = "A"; in testFlagsCase1() local 296 Matcher mat = pat.matcher(testString); in testFlagsCase1() 302 String testString = "A"; in testFlagsCase2() local 304 Matcher mat = pat.matcher(testString); in testFlagsCase2() 310 String testString = "B"; in testFlagsCase3() local 312 Matcher mat = pat.matcher(testString); in testFlagsCase3() 318 String testString = "B"; in testFlagsCase4() local 320 Matcher mat = pat.matcher(testString); in testFlagsCase4() 326 String testString = "B"; in testFlagsCase5() local 328 Matcher mat = pat.matcher(testString); in testFlagsCase5() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | StringReaderTest.java | 25 String testString = "This is a test string"; field in StringReaderTest 43 sr = new StringReader(testString); in test_close() 58 sr = new StringReader(testString); in test_markI() 66 .equals(testString.substring(5, 7))); in test_markI() 75 sr = new StringReader(testString); in test_markSupported() 84 sr = new StringReader(testString); in test_read() 96 sr = new StringReader(testString); in test_read$CII() 97 char[] buf = new char[testString.length()]; in test_read$CII() 98 int r = sr.read(buf, 0, testString.length()); in test_read$CII() 99 assertTrue("Failed to read chars", r == testString.length()); in test_read$CII() [all …]
|
D | BufferedWriterTest.java | 34 …public String testString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_java_io_Buffere… field in BufferedWriterTest 86 bw.write(testString); in test_close() 91 assertTrue("Write after close", !sw.toString().equals(testString)); in test_close() 146 char[] testCharArray = testString.toCharArray(); in test_write$CII() 150 testString.substring(500, 1500))); in test_write$CII() 188 char[] testCharArray = testString.toCharArray(); in test_write_$CII_Exception() 225 bw.write(testString); in test_writeLjava_lang_StringII() 227 assertTrue("Incorrect string written", sw.toString().equals(testString)); in test_writeLjava_lang_StringII() 248 bWriter.write(testString, 0, 0); in test_write_LStringII_Exception() 249 bWriter.write(testString, testString.length(), 0); in test_write_LStringII_Exception() [all …]
|
D | BufferedReaderTest.java | 36 …String testString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_java_io_BufferedOutput… field in BufferedReaderTest 92 br = new BufferedReader(new Support_StringReader(testString)); in test_close() 107 br = new BufferedReader(new Support_StringReader(testString)); in test_markI() 112 buf = new char[testString.length()]; in test_markI() 114 assertTrue("Failed to set mark properly", testString.substring(500, in test_markI() 118 br = new BufferedReader(new Support_StringReader(testString), 800); in test_markI() 182 br = new BufferedReader(new Support_StringReader(testString)); in test_markSupported() 192 br = new BufferedReader(new Support_StringReader(testString)); in test_read() 194 assertTrue("Char read improperly", testString.charAt(0) == r); in test_read() 289 char[] buf = new char[testString.length()]; in test_read$CII() [all …]
|
D | WriterTest.java | 41 String testString = "My Test String"; in test_appendCharSequence() local 43 writer.append(testString); in test_appendCharSequence() 44 assertEquals(testString, String.valueOf(writer.getContents())); in test_appendCharSequence() 53 String testString = "My Test String"; in test_appendCharSequenceIntInt() local 55 writer.append(testString, 1, 3); in test_appendCharSequenceIntInt() 56 assertEquals(testString.substring(1, 3), String.valueOf(writer in test_appendCharSequenceIntInt()
|
D | StringWriterTest.java | 177 String testString = "My Test String"; in test_appendCharSequence() local 179 stringWriter.append(testString); in test_appendCharSequence() 180 assertEquals(String.valueOf(testString), stringWriter.toString()); in test_appendCharSequence() 188 String testString = "My Test String"; in test_appendCharSequenceIntInt() local 190 stringWriter.append(testString, 1, 3); in test_appendCharSequenceIntInt() 191 assertEquals(testString.substring(1, 3), stringWriter.toString()); in test_appendCharSequenceIntInt()
|
D | CharArrayWriterTest.java | 214 String testString = "My Test String"; in test_appendCharSequence() local 216 writer.append(testString); in test_appendCharSequence() 218 assertEquals(testString, writer.toString()); in test_appendCharSequence() 226 String testString = "My Test String"; in test_appendCharSequenceIntInt() local 228 writer.append(testString, 1, 3); in test_appendCharSequenceIntInt() 230 assertEquals(testString.substring(1, 3), writer.toString()); in test_appendCharSequenceIntInt()
|
D | OutputStreamWriterTest.java | 55 …String testString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_java_io_BufferedOutput… field in OutputStreamWriterTest 573 osw.write(testString, 0, testString.length()); in test_close() 622 char[] buf = new char[testString.length()]; in test_flush() 623 osw.write(testString, 0, testString.length()); in test_flush() 628 .equals(testString)); in test_flush() 665 char[] buf = new char[testString.length()]; in test_write$CII() 666 osw.write(testString, 0, testString.length()); in test_write$CII() 671 .equals(testString)); in test_write$CII() 689 char[] buf = new char[testString.length()]; in test_writeLjava_lang_StringII() 690 osw.write(testString, 0, testString.length()); in test_writeLjava_lang_StringII() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
D | OldMatcherTest.java | 113 String testString = "babbabbcccabbabbabbabbabb"; in test_reset() local 115 Matcher mat = pat.matcher(testString); in test_reset() 124 String testString = "abb"; in test_hasAnchoringBounds() local 126 Matcher mat = pat.matcher(testString); in test_hasAnchoringBounds() 142 String testString = "ab\nb"; in test_hasTransparentBounds() local 144 Matcher mat = pat.matcher(testString); in test_hasTransparentBounds() 160 String testString = "cccabbabbabbabbabb"; in test_startI() local 162 Matcher mat = pat.matcher(testString); in test_startI() 196 String testString = "cccabbabbabbabbabb"; in test_endI() local 198 Matcher mat = pat.matcher(testString); in test_endI() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | ProviderMismatchExceptionTest.java | 25 String testString = "testString"; in test_constructor$String() local 26 ProviderMismatchException exception = new ProviderMismatchException(testString); in test_constructor$String() 27 assertEquals(testString, exception.getMessage()); in test_constructor$String()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldAttributedStringTest.java | 41 String testString = "Test string"; in test_ConstructorLAttributedCharacterIterator_1() local 42 AttributedString attrString = new AttributedString(testString); in test_ConstructorLAttributedCharacterIterator_1() 45 assertEqualString("String must match!", testString, attrString2); in test_ConstructorLAttributedCharacterIterator_1() 49 String testString = "Test string"; in test_ConstructorLAttributedCharacterIterator_2() local 50 AttributedString attrString = new AttributedString(testString); in test_ConstructorLAttributedCharacterIterator_2() 92 String testString = "Test string"; in test_ConstructorLAttributedCharacterIterator_3() local 93 AttributedString attrString = new AttributedString(testString); in test_ConstructorLAttributedCharacterIterator_3()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | FloatTest.java | 321 String testString; in test_parseFloatLjava_lang_String() local 322 testString = "3.4028234663852886e-" + i; in test_parseFloatLjava_lang_String() 323 doTestCompareRawBits(testString, rawBitsFor3_4eN38To38[38 - i], in test_parseFloatLjava_lang_String() 348 String testString; in test_parseFloatLjava_lang_String() local 349 testString = "3.4028234663852886e+" + i; in test_parseFloatLjava_lang_String() 350 doTestCompareRawBits(testString, rawBitsFor3_4eN38To38[38 + i], in test_parseFloatLjava_lang_String() 356 String testString; in test_parseFloatLjava_lang_String() local 357 testString = "-1.1754943508222875e-" + i; in test_parseFloatLjava_lang_String() 358 doTestCompareRawBits(testString, rawBitsFor1_17eN38To38[38 - i], in test_parseFloatLjava_lang_String() 383 String testString; in test_parseFloatLjava_lang_String() local [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
D | ObjectInputStreamTest.java | 132 private final String testString = "Lorem ipsum..."; field in ObjectInputStreamTest 134 private final int testLength = testString.length(); 137 oos.writeObject(testString); in test_ConstructorLjava_io_InputStream_IOException() 169 oos.writeObject(testString); in test_available_IOException() 187 oos.writeObject(testString); in test_close() 214 oos.writeObject(testString); in test_read_IOException() 232 oos.writeObject(testString); in test_read$BII_Exception() 272 oos.writeBytes(testString); in test_readFully$B() 277 testString, new String(buf)); in test_readFully$B() 292 oos.writeObject(testString); in test_readFully$B_Exception() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | InflaterOutputStreamTest.java | 40 private String testString = "Hello world"; field in InflaterOutputStreamTest 232 int length = compressToBytes(testString); in test_write_I() 241 assertEquals(testString, result); in test_write_I() 265 int length = compressToBytes(testString); in test_write_$BII() 272 assertEquals(testString, result); in test_write_$BII()
|