Home
last modified time | relevance | path

Searched refs:ioException (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/libcore/java/io/
DUncheckedIOExceptionTest.java32 IOException ioException = new IOException(); in test_ConstructorLjava_lang_IOException() local
33 UncheckedIOException e = new UncheckedIOException(ioException); in test_ConstructorLjava_lang_IOException()
35 assertSame(ioException, e.getCause()); in test_ConstructorLjava_lang_IOException()
42 IOException ioException = new IOException(); in test_ConstructorLjava_lang_String_IOException() local
43 UncheckedIOException e = new UncheckedIOException("errmsg", ioException); in test_ConstructorLjava_lang_String_IOException()
45 assertSame(ioException, e.getCause()); in test_ConstructorLjava_lang_String_IOException()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DIOExceptionTest.java62 IOException ioException = new IOException( in test_ConstructorLString_LThrowable() local
64 assertEquals("A fake IOException", ioException.getMessage()); //$NON-NLS-1$ in test_ConstructorLString_LThrowable()
84 IOException ioException = new IOException(cause); in test_Constructor_LThrowable() local
85 assertEquals(cause.toString(), ioException.getMessage()); in test_Constructor_LThrowable()
87 ioException = new IOException((Throwable) null); in test_Constructor_LThrowable()
88 assertNull(ioException.getMessage()); in test_Constructor_LThrowable()
/libcore/luni/src/test/java/libcore/java/nio/file/
DSimpleFileVisitorTest.java52 IOException ioException = new IOException(); in test_postVisitDirectory() local
58 fileVisitor.postVisitDirectory(null, ioException); in test_postVisitDirectory()
63 fileVisitor.postVisitDirectory(stubPath, ioException); in test_postVisitDirectory()
66 assertSame(ioException, actual); in test_postVisitDirectory()
90 IOException ioException = new IOException(); in test_visitFileFailed() local
101 ioException)); in test_visitFileFailed()
108 ioException)); in test_visitFileFailed()
111 assertSame(ioException, actual); in test_visitFileFailed()
DDirectoryIteratorExceptionTest.java27 IOException ioException = new IOException(); in test_constructor() local
28 DirectoryIteratorException exception = new DirectoryIteratorException(ioException); in test_constructor()
30 assertSame(ioException, exception.getCause()); in test_constructor()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DFormatterTest.java678 assertNull(f.ioException()); in test_close()
703 assertNull(f.ioException()); in test_ioException()
705 assertNotNull(f.ioException()); in test_ioException()
712 assertNotNull(f.ioException()); in test_ioException()
DScannerTest.java519 assertNull(s.ioException()); // No operation, no exception in test_ioException()
522 assertNotNull(s.ioException()); in test_ioException()
523 assertTrue(s.ioException() instanceof IOException); in test_ioException()
/libcore/ojluni/src/main/java/java/util/
DScanner.java1127 public IOException ioException() { in ioException() method in Scanner
DFormatter.java2424 public IOException ioException() { in ioException() method in Formatter