Code example for UnsupportedCallbackException

Methods: getCallback, getMessage

0
    }) 
    public void testUnsupportedCallbackException02() { 
        myCallback c = new myCallback();
        assertNotNull("Callback object is null", c);
        UnsupportedCallbackException ucE = new UnsupportedCallbackException(c);
        assertNull("getMessage() must return null.", ucE.getMessage());
        assertEquals("Incorrect callback object was returned", c, ucE.getCallback());
    } 
     
    /** 
     * @tests javax.security.auth.callback.UnsupportedCallbackExceptionTest#UnsupportedCallbackException(Callback callback, String msg)  
     * Assertion: constructs with null callback parameter and null message. 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "UnsupportedCallbackException", 
        args = {Callback.class, String.class}
    ) 
    public void testUnsupportedCallbackException03() { 
        UnsupportedCallbackException ucE = new UnsupportedCallbackException(null, null);