Code example for UnsupportedCallbackException

Methods: getMessagegetCallback

0
    /** 
     * javax.security.auth.callback.UnsupportedCallbackExceptionTest#UnsupportedCallbackException(Callback callback, String msg) 
     * Assertion: constructs with null callback parameter and null message. 
     */ 
    public void testUnsupportedCallbackException03() { 
        UnsupportedCallbackException ucE = new UnsupportedCallbackException(null, null);
        assertNull("getMessage() must return null.", ucE.getMessage());
        assertNull("getCallback() must return null.", ucE.getCallback());
    } 
 
    /** 
     * javax.security.auth.callback.UnsupportedCallbackExceptionTest#UnsupportedCallbackException(Callback callback, String msg) 
     * Assertion: constructs with null callback parameter and not null message. 
     */ 
    public void testUnsupportedCallbackException04() { 
        UnsupportedCallbackException ucE;
        for (int i = 0; i < msgs.length; i++) {
            ucE = new UnsupportedCallbackException(null, msgs[i]);
            assertEquals("getMessage() must return: ".concat(msgs[i]), ucE.getMessage(), msgs[i]);
            assertNull("getCallback() must return null.", ucE.getCallback());
Connect your IDE to all the code out there  Get Codota for Java