Code example for ProviderException

Methods: getCause, getMessage

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