Code example for FactoryConfigurationError

Methods: getException

0
        Exception e = new Exception();
        // case 1: Try to create FactoryConfigurationError 
        // which is based on Exception without parameters. 
        FactoryConfigurationError fce = new FactoryConfigurationError(e, "msg");
        assertNotNull(fce.getMessage());
        assertNotNull(fce.getLocalizedMessage());
        assertEquals(e.getCause(), fce.getCause());
 
        // case 2: Try to create FactoryConfigurationError 
        // which is based on Exception with String parameter. 
        e = new Exception("test message");
        fce = new FactoryConfigurationError(e, "msg");
        assertEquals("msg", fce.getMessage());
        assertEquals("msg", fce.getLocalizedMessage());
        assertEquals(e.getCause(), fce.getCause());
    } 
 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "FactoryConfigurationError",