@Test public void testValidParse() throws Exception { Document dom = domBuilderFactory.newDocumentBuilder().parse(getClass().getResourceAsStream("/configs/valid.xml")); OffHeapResourcesProvider config = parser.parse(dom.getDocumentElement(), "what is this thing?"); assertThat(config.getOffHeapResource(identifier("primary")).available(), is(longValueExact(convert(BigInteger.valueOf(128L), MemoryUnit.GB)))); assertThat(config.getOffHeapResource(identifier("secondary")).available(), is(longValueExact(convert(BigInteger.valueOf(1024L), MemoryUnit.MB)))); }
@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();  }