@Test public void testAddXpathQuery() { XpathObjectMetadataService service = new XpathObjectMetadataService(); service.setXmlDocumentFactoryConfig(null); ConfiguredXpathQuery query = new ConfiguredXpathQuery("failureCount", "count(/svrl:schematron-output/svrl:failed-assert)"); service.addXpathQuery(query); assertEquals(1, service.getXpathQueries().size()); assertEquals(query, service.getXpathQueries().get(0)); try { service.addXpathQuery(null); fail(); } catch (IllegalArgumentException expected) { } assertEquals(1, service.getXpathQueries().size()); assertEquals(query, service.getXpathQueries().get(0)); }
public void addXpathQuery(XpathQuery query) { xpathQueries.add(Args.notNull(query, "query")); }
XpathObjectMetadataService extends ServiceImp { public void addXpathQuery(XpathQuery query) { xpathQueries.add(Args.notNull(query, "query")); } }
XpathObjectMetadataService extends ServiceImp { public void addXpathQuery(XpathQuery query) { xpathQueries.add(Args.notNull(query, "query")); } XpathObjectMetadataService(); }
XpathObjectMetadataService extends ServiceImp { public void addXpathQuery(XpathQuery query) { xpathQueries.add(Args.notNull(query, "query")); } XpathObjectMetadataService(); @Override void doService(AdaptrisMessage msg); KeyValuePairSet getNamespaceContext(); void setNamespaceContext(KeyValuePairSet namespaceContext); List<XpathObjectQuery> getXpathQueries(); void setXpathQueries(List<XpathObjectQuery> xql); void addXpathQuery(XpathQuery query); @Override void prepare(); DocumentBuilderFactoryBuilder getXmlDocumentFactoryConfig(); void setXmlDocumentFactoryConfig(DocumentBuilderFactoryBuilder xml); }
XpathObjectMetadataService extends ServiceImp { public void addXpathQuery(XpathQuery query) { xpathQueries.add(Args.notNull(query, "query")); } XpathObjectMetadataService(); @Override void doService(AdaptrisMessage msg); KeyValuePairSet getNamespaceContext(); void setNamespaceContext(KeyValuePairSet namespaceContext); List<XpathObjectQuery> getXpathQueries(); void setXpathQueries(List<XpathObjectQuery> xql); void addXpathQuery(XpathQuery query); @Override void prepare(); DocumentBuilderFactoryBuilder getXmlDocumentFactoryConfig(); void setXmlDocumentFactoryConfig(DocumentBuilderFactoryBuilder xml);  }