DozerResolver implements EntityResolver { public InputSource resolveEntity(String publicId, String systemId) { InputSource source = null; log.debug("Trying to resolve XML entity with public ID [{}] and system ID [{}]", publicId, systemId); if (VERSION_5_XSD.equalsIgnoreCase(systemId)) { throw new MappingException("Dozer >= v6.0.0 uses a new XSD location. Your current config needs to be upgraded. " + "Found v5 XSD: '" + VERSION_5_XSD + "'. Expected v6 XSD: '" + VERSION_6_XSD + "'. Please see migration guide @ https: } try { source = resolveFromClassPath(publicId, systemId); } catch (IOException ex1) { log.error("Could not resolve bean-mapping XML Schema [" + systemId + "]: not found in classpath", ex1); try { source = resolveFromURL(systemId); } catch (IOException ex2) { log.error("Could not resolve bean-mapping XML Schema [" + systemId + "]", ex2); } } return source; } DozerResolver(BeanContainer beanContainer); InputSource resolveEntity(String publicId, String systemId);  }
@Test public void testResolveEntity_OK() { InputSource inputSource = dozerResolver.resolveEntity(null, "http: assertNotNull(inputSource); }
@Test public void testResolveEntity_Direct() { InputSource inputSource = dozerResolver.resolveEntity(null, "bean-mapping.xsd"); assertNotNull(inputSource); }