Code example for ParserConfigurationException

Methods: getCause, getLocalizedMessage, getMessage

0
import junit.framework.TestCase; 
import dalvik.annotation.TestLevel; 
import dalvik.annotation.TestTargetClass; 
import dalvik.annotation.TestTargetNew; 
 
@TestTargetClass(ParserConfigurationException.class) 
public class ParserConfigurationExceptionTest extends TestCase{
 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "ParserConfigurationException", 
        args = {} 
    ) 
    public void test_Constructor() { 
        ParserConfigurationException pce = new ParserConfigurationException();
        assertNull(pce.getMessage());
        assertNull(pce.getLocalizedMessage());
        assertNull(pce.getCause());
    }