Code example for NotActiveException

Methods: getMessage

0
 
    /** 
     * @tests java.io.NotActiveException#NotActiveException() 
     */ 
    public void test_Constructor() { 
        NotActiveException e = new NotActiveException();
        assertNull(e.getMessage());
    } 
 
    /** 
     * @tests java.io.NotActiveException#NotActiveException(java.lang.String) 
     */ 
    public void test_ConstructorLjava_lang_String() { 
        String message = "Exception message";
        NotActiveException e = new NotActiveException(message);
        assertSame(message, e.getMessage());
    } 
} 
Experience pair programming with AI  Get Codota for Java