void () { myFixture.copyDirectoryToProject("", ""); final List<IndexedRelevantResource<String, XsdNamespaceBuilder>> files = XmlNamespaceIndex.getResourcesByNamespace(NS, getProject(), getModule()); assertEquals(2, files.size()); IndexedRelevantResource<String, XsdNamespaceBuilder> resource = XmlNamespaceIndex.guessSchema(NS, "web-app", "3.0", null, getModule(), getProject()); assertNotNull(resource); XsdNamespaceBuilder builder = resource.getValue(); assertEquals(NS, builder.getNamespace()); assertEquals("3.0", builder.getVersion()); assertEquals(Collections.singletonList("web-app"), builder.getTags()); resource = XmlNamespaceIndex.guessSchema(NS, "web-app", "2.5", null, getModule(), getProject()); assertNotNull(resource); builder = resource.getValue(); assertEquals(NS, builder.getNamespace()); assertEquals("2.5", builder.getVersion()); assertEquals(Collections.singletonList("web-app"), builder.getTags()); resource = XmlNamespaceIndex.guessSchema(NS, "foo-bar", "2.5", null, getModule(), getProject()); assertNull(resource); }