Code example for IllegalBlockingModeException

Methods: getCause, getLocalizedMessage, getMessage

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