Home | History | Annotate | Download | only in io

Lines Matching defs:IOException

20 import java.io.IOException;
27 * java.io.IOException#IOException()
32 throw new IOException();
34 fail("Exception during IOException test");
35 } catch (IOException e) {
41 * java.io.IOException#IOException(java.lang.String)
46 throw new IOException("Some error message");
49 } catch (IOException e) {
55 * java.io.IOException#IOException(java.lang.String,
60 // Test for constructor java.io.IOException(java.lang.String, java.lang.Throwable)
62 IOException ioException = new IOException(
63 "A dummy IOException", new Throwable("A dummy Throwable")); //$NON-NLS-1$//$NON-NLS-2$
64 assertEquals("A dummy IOException", ioException.getMessage()); //$NON-NLS-1$
67 throw new IOException(
69 } catch (IOException e) {
72 fail("Exception during IOException test" + e.toString()); //$NON-NLS-1$
78 * java.io.IOException#IOException(java.lang.Throwable)
82 // Test for constructor java.io.IOException(java.lang.Throwable)
84 IOException ioException = new IOException(cause);
85 assertEquals(cause.toString(), ioException.getMessage());
87 ioException = new IOException((Throwable) null);
88 assertNull(ioException.getMessage());
91 throw new IOException(new Throwable("Some error message")); //$NON-NLS-1$
92 } catch (IOException e) {
95 fail("Exception during IOException test" + e.toString()); //$NON-NLS-1$