protected void setUp() throws Exception { super.setUp(); try { factory = new DOMDocumentBuilderFactory(DOMDocumentBuilderFactory.getConfiguration1()); builder = factory.getBuilder(); } catch (Exception e) { fail("Unexpected exception" + e.getMessage()); } }
protected void setUp() throws Exception { super.setUp(); try { // Changed to configuration #2. This test case just doesn't make // sense without a namespace-aware parser. It actually fails even // on the JDK in that case. factory = new DOMDocumentBuilderFactory(DOMDocumentBuilderFactory.getConfiguration2()); builder = factory.getBuilder(); } catch (Exception e) { fail("Unexpected exception" + e.getMessage()); } }