Package nu.xom

Examples of nu.xom.XPathException


        super(name);  
    }

   
    protected void setUp() {
        ex = new XPathException("message");
        cause = new Exception();
    }
View Full Code Here


    }
   
   
    public void testConstructor() {
        String message = "testing 1-2-3";
        XPathException ex = new XPathException(message, cause);
        assertEquals(message, ex.getMessage());
        assertEquals(cause, ex.getCause());
    }
View Full Code Here

    }


    public void testNullInitCause() {
       
        XPathException ex = new XPathException(null, null);
        assertNull(ex.getCause());
       
        try {
            ex.initCause(new Exception());
            fail("Reinitialized cause over null");  
        }
        catch (IllegalStateException success) {
            assertNotNull(success.getMessage());  
        }

        try {
            ex.initCause(null);  
            fail("Reinitialized cause over null");  
        }
        catch (IllegalStateException success) {
            assertNotNull(success.getMessage());  
        }
View Full Code Here

       
    }

   
    public void testGetMessage() {     
        Exception ex = new XPathException("testing");
        assertEquals("testing", ex.getMessage());
    }
View Full Code Here

TOP

Related Classes of nu.xom.XPathException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.