Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DScannerParseLargeFileBenchmarkTest.java33 Scanner scanner = new Scanner(reader).useDelimiter(delimiter); in testParseLargeFile() local
35 while (scanner.hasNext()) { in testParseLargeFile()
36 scanner.next(); in testParseLargeFile()
38 scanner.close(); in testParseLargeFile()
DControlTest.java423 Scanner scanner = new Scanner(file); in changeProperties() local
424 assertEquals(newValue, scanner.nextLine()); in changeProperties()
425 scanner.close(); in changeProperties()
DPropertiesTest.java710 Scanner scanner = new Scanner(out.toString()); in test_storeLjava_io_WriterLjava_lang_String() local
711 assertTrue(scanner.nextLine().startsWith("#A Header")); in test_storeLjava_io_WriterLjava_lang_String()
712 assertTrue(scanner.nextLine().startsWith("#")); in test_storeLjava_io_WriterLjava_lang_String()
DScannerTest.java5516 final Scanner scanner = new Scanner(pis); in test_hasNextLine_sequence() local
5521 while (scanner.hasNextLine()) { in test_hasNextLine_sequence()
5522 String line = scanner.nextLine(); in test_hasNextLine_sequence()
5544 assertFalse(scanner.hasNextLine()); in test_hasNextLine_sequence()