Code example for UnsupportedCallbackException

Methods: getCallback, getMessage

0
    public void testUnsupportedCallbackException01() { 
        Callback c = null;
        UnsupportedCallbackException ucE = new UnsupportedCallbackException(c);
        assertNull("getMessage() must return null.", ucE.getMessage());
        assertNull("getCallback() must return null", ucE.getCallback());
    } 
     
    /** 
     * @tests javax.security.auth.callback.UnsupportedCallbackExceptionTest#UnsupportedCallbackException(Callback callback) 
     * @tests javax.security.auth.callback.UnsupportedCallbackExceptionTest#getCallback()  
     * Assertion: constructs with not null parameter. 
     */ 
    @TestTargets({ 
        @TestTargetNew( 
            level = TestLevel.PARTIAL_COMPLETE, 
            notes = "", 
            method = "UnsupportedCallbackException", 
            args = {Callback.class}
        ), 
        @TestTargetNew( 
            level = TestLevel.PARTIAL_COMPLETE,