Code example for ProviderException

Methods: getCause, getMessage

0
            "Check new message", 
            "Check new message Check new message Check new message Check new message Check new message" }; 
 
    private static Throwable tCause = new Throwable("Throwable for exception");
 
    /** 
     * Test for <code>ProviderException()</code> constructor Assertion: 
     * constructs ProviderException with no detail message 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "ProviderException", 
        args = {} 
    ) 
    public void testProviderException01() { 
        ProviderException tE = new ProviderException();
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    }