Code example for SSLPeerUnverifiedException

Methods: getCause, getMessage

0
    ) 
    public void test_Constructor01() { 
        SSLPeerUnverifiedException sslE;
        for (int i = 0; i < msgs.length; i++) {
            sslE = new SSLPeerUnverifiedException(msgs[i]);
            assertEquals("getMessage() must return: ".concat(msgs[i]), sslE.getMessage(), msgs[i]);
            assertNull("getCause() must return null", sslE.getCause());
        } 
    } 
     
    /** 
     * Test for <code>SSLPeerUnverifiedException(String)</code> constructor Assertion: 
     * constructs SSLPeerUnverifiedException with detail message msg. Parameter 
     * <code>msg</code> is null. 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "SSLPeerUnverifiedException", 
        args = {java.lang.String.class}
    )