@Test public void testNoResources() throws Exception { Document dom = domBuilderFactory.newDocumentBuilder().parse(getClass().getResourceAsStream("/configs/no-resources.xml")); try { parser.parse(dom.getDocumentElement(), "what is this thing?"); Assert.fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) { } }
@Override public OffHeapResourcesProvider parse(Element elmnt, String string) { return new OffHeapResourcesProvider(parser().apply(elmnt)); }
OffHeapResourceConfigurationParser implements ExtendedConfigParser { @Override public OffHeapResourcesProvider parse(Element elmnt, String string) { return new OffHeapResourcesProvider(parser().apply(elmnt)); } }
OffHeapResourceConfigurationParser implements ExtendedConfigParser { @Override public OffHeapResourcesProvider parse(Element elmnt, String string) { return new OffHeapResourcesProvider(parser().apply(elmnt)); }  }
OffHeapResourceConfigurationParser implements ExtendedConfigParser { @Override public OffHeapResourcesProvider parse(Element elmnt, String string) { return new OffHeapResourcesProvider(parser().apply(elmnt)); }  @Override Source getXmlSchema(); @Override URI getNamespace(); @Override OffHeapResourcesProvider parse(Element elmnt, String string); ConfigValidator getConfigValidator(); Function<Element, OffheapResourcesType> parser(); }
OffHeapResourceConfigurationParser implements ExtendedConfigParser { @Override public OffHeapResourcesProvider parse(Element elmnt, String string) { return new OffHeapResourcesProvider(parser().apply(elmnt)); }  @Override Source getXmlSchema(); @Override URI getNamespace(); @Override OffHeapResourcesProvider parse(Element elmnt, String string); ConfigValidator getConfigValidator(); Function<Element, OffheapResourcesType> parser();  }