Code example for ProviderException

Methods: getCause, getMessage

0
        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());
    } 
 
    /** 
     * Test for <code>ProviderException(Throwable)</code> constructor 
     * Assertion: constructs ProviderException when <code>cause</code> is null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "ProviderException", 
        args = {java.lang.Throwable.class}
    )