Code example for InvalidPreferencesFormatException

Methods: getCause, getMessage

0
 
/** 
 *  
 */ 
@TestTargetClass(InvalidPreferencesFormatException.class)
public class InvalidPreferencesFormatExceptionTest extends TestCase {
 
    /* 
     * Class under test for void InvalidPreferencesFormatException(String) 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "InvalidPreferencesFormatException", 
        args = {java.lang.String.class}
    ) 
    public void testInvalidPreferencesFormatExceptionString() { 
        InvalidPreferencesFormatException e = new InvalidPreferencesFormatException(
        "msg"); 
        assertNull(e.getCause());
        assertEquals("msg", e.getMessage());