Home
last modified time | relevance | path

Searched refs:TEST_FILE_DATA_2 (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/test/java/libcore/java/nio/file/
DDefaultFileSystemProviderTest.java69 import static libcore.java.nio.file.FilesSetup.TEST_FILE_DATA_2;
189 os.write(TEST_FILE_DATA_2.getBytes()); in test_newOutputStream_openOption_TRUNCATE()
193 assertEquals(TEST_FILE_DATA_2, readFromInputStream(is)); in test_newOutputStream_openOption_TRUNCATE()
209 os.write(TEST_FILE_DATA_2.getBytes()); in test_newOutputStream_openOption_WRITE()
213 String expectedFileData = TEST_FILE_DATA_2 + in test_newOutputStream_openOption_WRITE()
214 TEST_FILE_DATA.substring(TEST_FILE_DATA_2.length()); in test_newOutputStream_openOption_WRITE()
230 os.write(TEST_FILE_DATA_2.getBytes()); in test_newOutputStream_openOption_CREATE()
234 String expectedFileData = TEST_FILE_DATA_2 + in test_newOutputStream_openOption_CREATE()
235 TEST_FILE_DATA.substring(TEST_FILE_DATA_2.length()); in test_newOutputStream_openOption_CREATE()
346 sbc.write(ByteBuffer.wrap(TEST_FILE_DATA_2.getBytes())); in test_newByteChannel_openOption_WRITE()
[all …]
DFiles2Test.java82 import static libcore.java.nio.file.FilesSetup.TEST_FILE_DATA_2;
968 lines.add(TEST_FILE_DATA_2); in test_lines$Path()
1122 bufferedWriter.write(TEST_FILE_DATA_2); in test_newBufferedWriter()
1124 assertEquals(TEST_FILE_DATA_2, in test_newBufferedWriter()
1213 sbc.write(ByteBuffer.wrap(TEST_FILE_DATA_2.getBytes())); in test_newByteChannel_openOption_WRITE()
1217 String expectedFileData = TEST_FILE_DATA_2 + in test_newByteChannel_openOption_WRITE()
1219 TEST_FILE_DATA_2.length()); in test_newByteChannel_openOption_WRITE()
1239 sbc.write(ByteBuffer.wrap(TEST_FILE_DATA_2.getBytes())); in test_newByteChannel_openOption_WRITE_READ()
1241 String expectedFileData = TEST_FILE_DATA + TEST_FILE_DATA_2; in test_newByteChannel_openOption_WRITE_READ()
1263 writeToFile(filesSetup.getDataFilePath(), "\n" + TEST_FILE_DATA_2, in test_readAllLine() local
[all …]
DDefaultFileSystemProvider2Test.java71 import static libcore.java.nio.file.FilesSetup.TEST_FILE_DATA_2;
109 writeToFile(filesSetup.getDataFilePath(), TEST_FILE_DATA_2); in test_move() local
111 assertEquals(TEST_FILE_DATA_2, readFromFile(filesSetup.getTestPath())); in test_move()
466 writeToFileChannel(fc, filesSetup.TEST_FILE_DATA_2); in test_newFileChannel()
468 assertEquals(overlayString1OnString2(TEST_FILE_DATA_2, TEST_FILE_DATA), in test_newFileChannel()
480 writeToFileChannel(fc, filesSetup.TEST_FILE_DATA_2); in test_newFileChannel()
482 assertEquals(TEST_FILE_DATA_2, readFromFile(filesSetup.getDataFilePath())); in test_newFileChannel()
493 writeToFileChannel(fc, filesSetup.TEST_FILE_DATA_2); in test_newFileChannel()
495 … assertEquals(TEST_FILE_DATA + TEST_FILE_DATA_2, readFromFile(filesSetup.getDataFilePath())); in test_newFileChannel()
DFilesSetup.java46 final static String TEST_FILE_DATA_2 = "test"; field in FilesSetup