Code example for NotYetConnectedException

Methods: getCause, getLocalizedMessage, getMessage

0
 
/** 
 * Tests for NotYetConnectedException 
 */ 
@TestTargetClass(NotYetConnectedException.class)
public class NotYetConnectedExceptionTest extends TestCase {
     
    /** 
     * @tests {@link java.nio.channels.NotYetConnectedException#NotYetConnectedException()} 
     */ 
    public void test_Constructor() { 
        NotYetConnectedException e = new NotYetConnectedException();
        assertNull(e.getMessage());
        assertNull(e.getLocalizedMessage());
        assertNull(e.getCause());
    } 
 
    /** 
     * @tests serialization/deserialization compatibility. 
     */ 
    @TestTargets({