Package org.objectweb.celtix.configuration.impl.TypeSchema

Examples of org.objectweb.celtix.configuration.impl.TypeSchema.TypeSchemaErrorHandler


            true);  
        assertEquals("org.objectweb.celtix.test.custom", ts.getPackageName());
    }
   
    public void testErrorHandler() {
        TypeSchemaErrorHandler eh = new TypeSchema.TypeSchemaErrorHandler();
        SAXParseException spe = new SAXParseException(null, null, null, 0, 0);
       
        try {
            eh.error(spe);
            fail("Expected SAXParseException not thrown.");
        } catch (SAXParseException ex) {
            // ignore;
        }
       
        try {
            eh.warning(spe);
            fail("Expected SAXParseException not thrown.");
        } catch (SAXParseException ex) {
             // ignore;
        }
       
        try {
            eh.fatalError(spe);
            fail("Expected SAXParseException not thrown.");
        } catch (SAXParseException ex) {
             // ignore;
        }         
    }
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.configuration.impl.TypeSchema.TypeSchemaErrorHandler

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.