@Test public void testDoService_NotXML() throws Exception { AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage("ABCDEFG"); XpathObjectMetadataService service = new XpathObjectMetadataService(); service.setXpathQueries(new ArrayList<XpathObjectQuery>(Arrays.asList(new ConfiguredXpathQuery("source", " new ConfiguredXpathQuery("destination", " try { execute(service, msg); fail(); } catch (ServiceException expected) { } }
public void setXpathQueries(List<XpathObjectQuery> xql) { xpathQueries = Args.notNull(xql, "xpathQueries"); }
XpathObjectMetadataService extends ServiceImp { public void setXpathQueries(List<XpathObjectQuery> xql) { xpathQueries = Args.notNull(xql, "xpathQueries"); } }
XpathObjectMetadataService extends ServiceImp { public void setXpathQueries(List<XpathObjectQuery> xql) { xpathQueries = Args.notNull(xql, "xpathQueries"); } XpathObjectMetadataService(); }
XpathObjectMetadataService extends ServiceImp { public void setXpathQueries(List<XpathObjectQuery> xql) { xpathQueries = Args.notNull(xql, "xpathQueries"); } 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 setXpathQueries(List<XpathObjectQuery> xql) { xpathQueries = Args.notNull(xql, "xpathQueries"); } 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);  }