Code example for InvalidPreferencesFormatException

0
        assertSame(t, e.getCause());
        assertTrue(e.getMessage().indexOf("root") < 0);
        assertTrue(e.getMessage().indexOf(t.getClass().getName()) < 0);
        assertTrue(e.getMessage().indexOf("msg") >= 0);
    } 
 
    /* 
     * Class under test for void InvalidPreferencesFormatException(Throwable) 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "InvalidPreferencesFormatException", 
        args = {java.lang.Throwable.class}
    ) 
    public void testInvalidPreferencesFormatExceptionThrowable() { 
        Throwable t = new Throwable("root");
        InvalidPreferencesFormatException e = new InvalidPreferencesFormatException(
                t);
        assertSame(t, e.getCause());
        assertTrue(e.getMessage().indexOf("root") >= 0);