Code example for ProviderException

Methods: getCause, getMessage

0
                    .getMessage(), msgs[i]);
            assertNull("getCause() must return null", tE.getCause());
        } 
    } 
 
    /** 
     * Test for <code>ProviderException(String)</code> constructor Assertion: 
     * constructs ProviderException when <code>msg</code> is null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "ProviderException", 
        args = {java.lang.String.class}
    ) 
    public void testProviderException03() { 
        String msg = null;
        ProviderException tE = new ProviderException(msg);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    }