@Test public void createSAXBuilder() throws Exception { SAXBuilder saxBuilder = this.mocker.getComponentUnderTest().createSAXBuilder(); assertNotNull(saxBuilder.getEntityResolver().resolveEntity("foo", "bar")); }
protected SAXBuilder createSAXBuilder() { SAXBuilder builder = new SAXBuilder(); builder.setEntityResolver(new EntityResolver() { @Override public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { return new InputSource(new StringReader("")); } }); return builder; }
DefaultEntityResourceActionLister implements EntityResourceActionLister, Initializable { protected SAXBuilder createSAXBuilder() { SAXBuilder builder = new SAXBuilder(); builder.setEntityResolver(new EntityResolver() { @Override public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { return new InputSource(new StringReader("")); } }); return builder; } }
DefaultEntityResourceActionLister implements EntityResourceActionLister, Initializable { protected SAXBuilder createSAXBuilder() { SAXBuilder builder = new SAXBuilder(); builder.setEntityResolver(new EntityResolver() { @Override public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { return new InputSource(new StringReader("")); } }); return builder; }  }
DefaultEntityResourceActionLister implements EntityResourceActionLister, Initializable { protected SAXBuilder createSAXBuilder() { SAXBuilder builder = new SAXBuilder(); builder.setEntityResolver(new EntityResolver() { @Override public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { return new InputSource(new StringReader("")); } }); return builder; }  @Override void initialize(); @Override List<String> listActions(); }
DefaultEntityResourceActionLister implements EntityResourceActionLister, Initializable { protected SAXBuilder createSAXBuilder() { SAXBuilder builder = new SAXBuilder(); builder.setEntityResolver(new EntityResolver() { @Override public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { return new InputSource(new StringReader("")); } }); return builder; }  @Override void initialize(); @Override List<String> listActions();  }