/** * Sets the path of the resource containing the plugin definition. This is used to locate the * manifest entry from which version and source information can be extracted. * * @param path Path of the resource containing this plugin definition. */ public void setPath(String path) { if (path != null) { manifest = ManifestIterator.getInstance().findByPath(path); } }
@Test public void testFindByPath() { ManifestIterator manifests = (ManifestIterator) appContext.getBean("manifestIterator"); String path = ManifestIterator.class.getClassLoader().getResource(ManifestIterator.MANIFEST_PATH).getPath(); assertNotNull(path); assertNotNull(manifests.findByPath(path)); } }
@Test public void testFindByPath() { ManifestIterator manifests = (ManifestIterator) appContext.getBean("manifestIterator"); String path = ManifestIterator.class.getClassLoader().getResource(ManifestIterator.MANIFEST_PATH).getPath(); assertNotNull(path); assertNotNull(manifests.findByPath(path)); } }