Home
last modified time | relevance | path

Searched refs:str2 (Results 1 – 7 of 7) sorted by relevance

/libcore/luni/src/test/java/libcore/java/io/
DOldPushbackReaderTest.java247 String str2 = "0123456789"; in test_unread$C() local
248 char[] buf2 = str2.toCharArray(); in test_unread$C()
260 assertEquals("Incorrect bytes read", str2, new String(readBuf)); in test_unread$C()
307 String str2 = "0123456789"; in test_unread$CII() local
308 char[] buf2 = (str2 + str2 + str2).toCharArray(); in test_unread$CII()
DOldPushbackInputStreamTest.java203 String str2 = "0123456789"; in test_unread$B() local
204 byte[] buf2 = str2.getBytes(); in test_unread$B()
217 assertEquals("Incorrect bytes read", str2, new String(readBuf)); in test_unread$B()
243 String str2 = "0123456789"; in test_unread$BII() local
244 byte[] buf2 = (str2 + str2 + str2).getBytes(); in test_unread$BII()
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldAttributesNameTest.java55 String str2 = "Attr2"; in test_toString() local
60 assertTrue(attr2.toString().equals(str2)); in test_toString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DProcessTest.java61 String str2 = "More data that serves the same purpose.\n"; in test_getOutputStream() local
69 os.write(str2.getBytes()); in test_getOutputStream()
74 assertEquals(str1 + str2 + str3, received); in test_getOutputStream()
DClassTest.java441 InputStream str2 = getClass().getResourceAsStream(name); in test_getResourceAsStreamLjava_lang_String() local
442 assertNotNull("the file " + name + " can not be found in this directory", str2); in test_getResourceAsStreamLjava_lang_String()
448 assertTrue("Cannot read single byte", str2.read() != -1); in test_getResourceAsStreamLjava_lang_String()
449 assertEquals("Cannot read multiple bytes", 5, str2.read(new byte[5])); in test_getResourceAsStreamLjava_lang_String()
450 str2.close(); in test_getResourceAsStreamLjava_lang_String()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectStreamFieldTest.java353 String str2 = "string 2"; field in MockClass
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java4606 public int compare(String str1, String str2) {
4607 … return str1.length() == str2.length() ? str1.compareTo(str2) : str1.length() - str2.length();