Searched refs:readFromInputStream (Results 1 – 3 of 3) sorted by relevance
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | DefaultFileSystemProviderTest.java | 71 import static libcore.java.nio.file.FilesSetup.readFromInputStream; 93 assertEquals(TEST_FILE_DATA, readFromInputStream(is)); in test_newInputStream() 119 assertEquals(TEST_FILE_DATA, readFromInputStream(is)); in test_newInputStream_openOption() 129 assertEquals(TEST_FILE_DATA, readFromInputStream(is)); in test_newInputStream_twice() 130 assertEquals(TEST_FILE_DATA, readFromInputStream(is2)); in test_newInputStream_twice() 153 assertEquals(TEST_FILE_DATA, readFromInputStream(is)); in test_newOutputStream() 173 assertEquals(TEST_FILE_DATA + TEST_FILE_DATA, readFromInputStream(is)); in test_newOutputStream_openOption_APPEND() 193 assertEquals(TEST_FILE_DATA_2, readFromInputStream(is)); in test_newOutputStream_openOption_TRUNCATE() 215 assertEquals(expectedFileData, readFromInputStream(is)); in test_newOutputStream_openOption_WRITE() 236 assertEquals(expectedFileData, readFromInputStream(is)); in test_newOutputStream_openOption_CREATE() [all …]
|
D | FilesSetup.java | 155 return readFromInputStream(is); in readFromFile() 158 static String readFromInputStream(InputStream is) throws IOException { in readFromInputStream() method in FilesSetup
|
D | Files2Test.java | 86 import static libcore.java.nio.file.FilesSetup.readFromInputStream; 264 String owner = readFromInputStream(statProcess.getInputStream()).trim(); in test_getOwner() 1220 assertEquals(expectedFileData, readFromInputStream(is)); in test_newByteChannel_openOption_WRITE() 1242 assertEquals(expectedFileData, readFromInputStream(is)); in test_newByteChannel_openOption_WRITE_READ()
|