Getting rid of @Ignore
This commit is contained in:
parent
7d75082b22
commit
b95f3f6792
|
|
@ -117,9 +117,8 @@ public abstract class AbstractStaxXMLReaderTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
|
||||||
public void lexicalHandler() throws SAXException, IOException, XMLStreamException {
|
public void lexicalHandler() throws SAXException, IOException, XMLStreamException {
|
||||||
MockControl lexicalHandlerControl = MockControl.createControl(LexicalHandler.class);
|
MockControl lexicalHandlerControl = MockControl.createStrictControl(LexicalHandler.class);
|
||||||
lexicalHandlerControl.setDefaultMatcher(new SaxArgumentMatcher());
|
lexicalHandlerControl.setDefaultMatcher(new SaxArgumentMatcher());
|
||||||
LexicalHandler lexicalHandlerMock = (LexicalHandler) lexicalHandlerControl.getMock();
|
LexicalHandler lexicalHandlerMock = (LexicalHandler) lexicalHandlerControl.getMock();
|
||||||
LexicalHandler lexicalHandler = new CopyingLexicalHandler(lexicalHandlerMock);
|
LexicalHandler lexicalHandler = new CopyingLexicalHandler(lexicalHandlerMock);
|
||||||
|
|
@ -128,7 +127,7 @@ public abstract class AbstractStaxXMLReaderTestCase {
|
||||||
|
|
||||||
standardReader.setContentHandler(null);
|
standardReader.setContentHandler(null);
|
||||||
standardReader.setProperty("http://xml.org/sax/properties/lexical-handler", lexicalHandler);
|
standardReader.setProperty("http://xml.org/sax/properties/lexical-handler", lexicalHandler);
|
||||||
standardReader.parse(new InputSource(createTestInputStream()));
|
standardReader.parse(new InputSource(testLexicalHandlerXml.getInputStream()));
|
||||||
lexicalHandlerControl.replay();
|
lexicalHandlerControl.replay();
|
||||||
|
|
||||||
inputFactory.setProperty("javax.xml.stream.isCoalescing", Boolean.FALSE);
|
inputFactory.setProperty("javax.xml.stream.isCoalescing", Boolean.FALSE);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue