| /libcore/ojluni/src/test/java/lang/String/ | 
| D | Lines.java | 46         testString("");  in testLines()47         testString(" ");  in testLines()
 48         testString("\n");  in testLines()
 49         testString("\n\n\n");  in testLines()
 50         testString("\r\r\r");  in testLines()
 51         testString("\r\n\r\n\r\n");  in testLines()
 52         testString("\n\r\r\n");  in testLines()
 53         testString("abc\ndef\nghi\n");  in testLines()
 54         testString("abc\ndef\nghi");  in testLines()
 55         testString("abc\rdef\rghi\r");  in testLines()
 [all …]
 
 | 
| D | Strip.java | 86         String testString = whiteSpace + "abc" + whiteSpace;  in testWhitespace()  local91         equal(String_strip(testString), "abc");  in testWhitespace()
 92         equal(String_stripLeading(testString), "abc"  + whiteSpace);  in testWhitespace()
 93         equal(String_stripTrailing(testString), whiteSpace + "abc");  in testWhitespace()
 
 | 
| /libcore/luni/src/test/java/libcore/java/io/ | 
| D | OldWriterTest.java | 40         String testString = "My Test String";  in test_appendCharSequence()  local42         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 OldPipedOutputStreamTest77     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()  local99             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 OldBufferedWriterTest71             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 OldOutputStreamWriterTest248             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 OldStringReaderTest30         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 OldBufferedReaderTest43         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 OldDataOutputStreamTest44     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 OldRandomAccessFileTest46     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 OldPipedWriterTest28     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 OldInputStreamTest38             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 | 299         String testString = "A";  in testFlagsCase1()  local301         Matcher mat = pat.matcher(testString);  in testFlagsCase1()
 307         String testString = "A";  in testFlagsCase2()  local
 309         Matcher mat = pat.matcher(testString);  in testFlagsCase2()
 315         String testString = "B";  in testFlagsCase3()  local
 317         Matcher mat = pat.matcher(testString);  in testFlagsCase3()
 323         String testString = "B";  in testFlagsCase4()  local
 325         Matcher mat = pat.matcher(testString);  in testFlagsCase4()
 331         String testString = "B";  in testFlagsCase5()  local
 333         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 StringReaderTest43             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 BufferedWriterTest86             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 BufferedReaderTest92 			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 | StringWriterTest.java | 177         String testString = "My Test String";  in test_appendCharSequence()  local179         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 | WriterTest.java | 41         String testString = "My Test String";  in test_appendCharSequence()  local43         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 | CharArrayWriterTest.java | 214         String testString = "My Test String";  in test_appendCharSequence()  local216         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 OutputStreamWriterTest573             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()  local115         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/ojluni/src/test/java/lang/StringBuffer/ | 
| D | IndexOf.java | 145             String testString = generateTestString(1, 100);  in compareStringStringBuffer()  local146             int len = testString.length();  in compareStringStringBuffer()
 149             testBuffer.append(testString);  in compareStringStringBuffer()
 150             if (!testString.equals(testBuffer.toString()))  in compareStringStringBuffer()
 155             while(x2 > testString.length()) {  in compareStringStringBuffer()
 160             String fragment = testString.substring(x1,x2);  in compareStringStringBuffer()
 162             int sAnswer = testString.indexOf(fragment);  in compareStringStringBuffer()
 170             sAnswer = testString.indexOf(fragment, testIndex);  in compareStringStringBuffer()
 176             sAnswer = testString.lastIndexOf(fragment);  in compareStringStringBuffer()
 184             sAnswer = testString.lastIndexOf(fragment, testIndex);  in compareStringStringBuffer()
 
 | 
| /libcore/luni/src/test/java/libcore/java/nio/file/ | 
| D | ProviderMismatchExceptionTest.java | 25         String testString = "testString";  in test_constructor$String()  local26         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()  local42         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()
 
 |