Examples of hadError()


Examples of com.sun.tools.xjc.util.ErrorReceiverFilter.hadError()

            reader.setContentHandler(new ForkContentHandler(checker,builder));

            reader.parse(is);
           
            if(controller.hadError())   throw new AbortException();
            return (Document)builder.getDOM();
        } catch( IOException e ) {
            receiver.error( new SAXParseException2(e.getMessage(),null,e) );
        } catch( SAXException e ) {
            receiver.error( new SAXParseException2(e.getMessage(),null,e) );
View Full Code Here

Examples of com.sun.tools.xjc.util.ErrorReceiverFilter.hadError()

            int i=0;
            for (String root : roots) {
                sources[i++] = new DOMSource(get(root),root);
            }
            sf.newSchema(sources);
            return !filter.hadError();
        } catch (SAXException e) {
            // the errors should have been reported
            return false;
        }
    }
View Full Code Here

Examples of com.sun.tools.xjc.util.ErrorReceiverFilter.hadError()

                            Messages.ERR_UNACKNOWLEDGED_CUSTOMIZATION_LOCATION));
                }
            }
        }

        if(ehf.hadError())
            o = null;
        return o;
    }

    /**
 
View Full Code Here

Examples of net.jsunit.TestCaseResult.hadError()

    public void testBuildSuccessfulResultFromString() {
        TestCaseResult result = TestCaseResult.fromString("file:///dummy/path/dummyPage.html:testFoo|1.3|S||");
        assertEquals("file:///dummy/path/dummyPage.html:testFoo", result.getName());
        assertEquals(1.3d, result.getTime(), .001d);
        assertFalse(result.hadError());
        assertFalse(result.hadFailure());
        assertTrue(result.hadSuccess());
        assertNull(result.getError());
        assertNull(result.getFailure());
        assertEquals("<testcase name=\"file:///dummy/path/dummyPage.html:testFoo\" time=\"1.3\" />", result.writeXmlFragment());
View Full Code Here

Examples of net.jsunit.TestCaseResult.hadError()

    public void testBuildErrorResultFromString() {
        TestCaseResult result = TestCaseResult.fromString("file:///dummy/path/dummyPage.html:testFoo|1.3|E|Test Error Message|");
        assertEquals("file:///dummy/path/dummyPage.html:testFoo", result.getName());
        assertEquals(1.3d, result.getTime(), .001d);
        assertTrue(result.hadError());
        assertFalse(result.hadFailure());
        assertFalse(result.hadSuccess());
        assertEquals("Test Error Message", result.getError());
        assertNull(result.getFailure());
        assertEquals("<testcase name=\"file:///dummy/path/dummyPage.html:testFoo\" time=\"1.3\"><error message=\"Test Error Message\" /></testcase>", result.writeXmlFragment());
View Full Code Here

Examples of net.jsunit.TestCaseResult.hadError()

    public void testBuildFailureResultFromString() {
        TestCaseResult result = TestCaseResult.fromString("file:///dummy/path/dummyPage.html:testFoo|1.3|F|Test Failure Message|");
        assertEquals("file:///dummy/path/dummyPage.html:testFoo", result.getName());
        assertEquals(1.3d, result.getTime(), .001d);
        assertFalse(result.hadError());
        assertTrue(result.hadFailure());
        assertFalse(result.hadSuccess());
        assertNull(result.getError());
        assertEquals("Test Failure Message", result.getFailure());
        assertEquals("<testcase name=\"file:///dummy/path/dummyPage.html:testFoo\" time=\"1.3\"><failure message=\"Test Failure Message\" /></testcase>", result.writeXmlFragment());
View Full Code Here

Examples of net.jsunit.TestCaseResult.hadError()

        TestCaseResult result = TestCaseResult.fromString("file:///dummy/path/dummyPage.html:testFoo|1.3|F|Test Failure Message|");
        Element element = new TestCaseResultWriter(result).createTestCaseElement();
        TestCaseResult reconstitutedResult = TestCaseResult.fromXmlElement(element);
        assertEquals("file:///dummy/path/dummyPage.html:testFoo", reconstitutedResult.getName());
        assertEquals(1.3d, reconstitutedResult.getTime(), .001d);
        assertFalse(reconstitutedResult.hadError());
        assertTrue(reconstitutedResult.hadFailure());
        assertFalse(reconstitutedResult.hadSuccess());
        assertNull(reconstitutedResult.getError());
        assertEquals("Test Failure Message", reconstitutedResult.getFailure());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.