Lines Matching refs:tmpfile
135 Path tmpfile = createTempFile("blah", "txt");
140 assertTrue(size(tmpfile) == 0, "File should be empty");
141 lines = readAllLines(tmpfile, US_ASCII);
146 write(tmpfile, hi);
147 lines = readAllLines(tmpfile, US_ASCII);
153 write(tmpfile, expected, US_ASCII);
154 assertTrue(size(tmpfile) > 0, "File is empty");
155 lines = readAllLines(tmpfile, US_ASCII);
160 write(tmpfile, bad);
162 readAllLines(tmpfile, US_ASCII);
173 readAllLines(tmpfile, null);
178 delete(tmpfile);
186 Path tmpfile = createTempFile("blah", "txt");
190 delete(tmpfile);
193 Path result = write(tmpfile, Collections.<String>emptyList(), US_ASCII);
194 assert(size(tmpfile) == 0);
195 assert(result == tmpfile);
199 write(tmpfile, lines, US_ASCII);
200 List<String> actual = readAllLines(tmpfile, US_ASCII);
204 write(tmpfile, lines, US_ASCII, StandardOpenOption.APPEND);
209 actual = readAllLines(tmpfile, US_ASCII);
215 write(tmpfile, Arrays.asList(s), US_ASCII);
225 write(tmpfile, null, US_ASCII);
229 write(tmpfile, lines, null);
233 write(tmpfile, lines, US_ASCII, (OpenOption[])null);
238 write(tmpfile, lines, US_ASCII, opts);
243 delete(tmpfile);