IntegratorOutputNode extends VolatileXMLFilterImpl implements IdQueryable { public StatefulXMLFilter addDescendent(String path, XMLReader source, boolean requireForWrite) { String[] pe = path.substring(1).split("/"); LinkedList<String> pathElements = new LinkedList<String>(Arrays.asList(pe)); return addDescendent(pathElements, source, requireForWrite); } IntegratorOutputNode();  IntegratorOutputNode(StatefulXMLFilter payload); static void main(String[] args); @Override void reset(); void setDescendentsSpring(List<String> descendentsSpring); List<String> getDescendentsSpring(); void setSubIntegratorsSpring(List<XMLReader> writeDuplicateIdsSpring); List<XMLReader> getSubIntegratorsSpring(); void initSpring(); StatefulXMLFilter addDescendent(String path, XMLReader source, boolean requireForWrite); StatefulXMLFilter addDescendent(LinkedList<String> pathElements, XMLReader source, boolean requireForWrite); void setAggregating(boolean aggregating); Boolean isAggregating(); @Override void setName(String name); @Override String getName(); @Override boolean getFeature(String name); @Override void setFeature(String name, boolean value); @Override Object getProperty(String name); @Override void setProperty(String name, Object value); @Override void setEntityResolver(EntityResolver resolver); @Override EntityResolver getEntityResolver(); @Override void setDTDHandler(DTDHandler handler); @Override DTDHandler getDTDHandler(); @Override ContentHandler getContentHandler(); @Override void setErrorHandler(ErrorHandler handler); @Override ErrorHandler getErrorHandler(); @Override void parse(InputSource input); @Override void parse(String systemId); @Override void setContentHandler(ContentHandler ch); ExecutorService getExecutor(); void setExecutor(ExecutorService executor); DataSourceFactory getDataSourceFactory(); void setDataSourceFactory(DataSourceFactory dsf); @Override void run(); static void main2(String[] args); @Override void step(); @Override boolean isFinished(); @Override void skipOutput(); @Override void writeOutput(ContentHandler ch); @Override String buffersToString(); @Override void writeEndElements(ContentHandler ch, int lowerLevel, boolean aggregate); @Override void writeStartElements(ContentHandler ch, int lowerLevel, boolean aggregate); @Override void writeRootElement(ContentHandler ch); @Override boolean self(); @Override Comparable getId(); @Override int getLevel(); void addChild(String childElementName, IdQueryable child, boolean requireForWrite);  }
@Test public void testIntegrate1() throws TransformerConfigurationException, TransformerException, ParserConfigurationException, SAXException, IOException { String testId = "testIntegrate1"; System.out.println("running test: "+testId); IntegratorOutputNode root = new IntegratorOutputNode(); root.addDescendent("/record/marc", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marc.xml"))), false); root.addDescendent("/record/marcOdd", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marcOdd.xml"))), false); verify(root, testId.concat(".xml"), true); }
@Test public void testIntegrate11() throws TransformerConfigurationException, TransformerException, ParserConfigurationException, SAXException, IOException { String testId = "testIntegrate11"; System.out.println("running test: "+testId); IntegratorOutputNode root = new IntegratorOutputNode(); root.addDescendent("/record/marc", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marc.xml"))), false); root.addDescendent("/record/marcOdd", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marcOddPartial.xml"))), false); try { verify(root, null, true); assertFalse("invocation did not throw exception!", true); } catch (RuntimeException ex) { assertTrue(ex.getCause() instanceof SAXParseException); } }
@Test public void testIntegrate2() throws TransformerConfigurationException, TransformerException, ParserConfigurationException, SAXException, IOException { String testId = "testIntegrate2"; System.out.println("running test: "+testId); IntegratorOutputNode root = new IntegratorOutputNode(); root.addDescendent("/record/marc", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marc.xml"))), false); root.addDescendent("/record/hldgs/hldg", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/hldg.xml"))), false); verify(root, testId.concat(".xml"), true); }
@Test public void testIntegrate3() throws TransformerConfigurationException, TransformerException, ParserConfigurationException, SAXException, IOException { String testId = "testIntegrate3"; System.out.println("running test: "+testId); IntegratorOutputNode root = new IntegratorOutputNode(); root.addDescendent("/record/marc", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marc.xml"))), false); root.addDescendent("/record/marcSpecial", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marcSpecial.xml"))), false); verify(root, testId.concat(".xml"), true); }
@Test public void testIntegrate4() throws TransformerConfigurationException, TransformerException, ParserConfigurationException, SAXException, IOException { String testId = "testIntegrate4"; System.out.println("running test: "+testId); IntegratorOutputNode root = new IntegratorOutputNode(); root.addDescendent("/record/marc", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marc.xml"))), false); root.addDescendent("/record/marcEmpty", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marcEmpty.xml"))), false); verify(root, testId.concat(".xml"), true); }
@Test public void testIntegrate5() throws TransformerConfigurationException, TransformerException, ParserConfigurationException, SAXException, IOException { String testId = "testIntegrate5"; System.out.println("running test: "+testId); IntegratorOutputNode root = new IntegratorOutputNode(); root.addDescendent("/record/marc", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marc.xml"))), false); root.addDescendent("/record/marcEmpty", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marcEmpty.xml"))), true); verify(root, testId.concat(".xml"), true); }
@Test public void testIntegrate6() throws TransformerConfigurationException, TransformerException, ParserConfigurationException, SAXException, IOException { String testId = "testIntegrate6"; System.out.println("running test: "+testId); IntegratorOutputNode root = new IntegratorOutputNode(); root.addDescendent("/record/marcEmpty1", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marcEmpty.xml"))), false); root.addDescendent("/record/marcEmpty2", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marcEmpty.xml"))), false); verify(root, testId.concat(".xml"), true); }
@Test public void testIntegrate7() throws TransformerConfigurationException, TransformerException, ParserConfigurationException, SAXException, IOException { String testId = "testIntegrate7"; System.out.println("running test: "+testId); IntegratorOutputNode root = new IntegratorOutputNode(); root.addDescendent("/record/marc", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marc.xml"))), true); root.addDescendent("/record/marcOdd", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marcOdd.xml"))), true); verify(root, testId.concat(".xml"), true); }
@Test public void testIntegrate8() throws TransformerConfigurationException, TransformerException, ParserConfigurationException, SAXException, IOException { String testId = "testIntegrate8"; System.out.println("running test: "+testId); IntegratorOutputNode root = new IntegratorOutputNode(); root.addDescendent("/record/marc", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/marc.xml"))), false); root.addDescendent("/record/hldgs/hldg", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/hldg.xml"))), false); root.addDescendent("/record/hldgs/hldg/items/itemEven", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/itemEven.xml"))), false); verify(root, testId.concat(".xml"), true); }
@Test public void testIntegrate9() throws TransformerConfigurationException, TransformerException, ParserConfigurationException, SAXException, IOException { String testId = "testIntegrate9"; System.out.println("running test: "+testId); IntegratorOutputNode root = new IntegratorOutputNode(); root.addDescendent("/record/marc", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/real/marc.xml"))), false); root.addDescendent("/record/holdings/holding", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/real/hldg.xml"))), false); root.addDescendent("/record/holdings/holding/items/item", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/real/item.xml"))), false); root.addDescendent("/record/holdings/holding/items/item/itemStatuses/itemStatus", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/real/itemStatus.xml"))), false); verify(root, testId.concat(".xml"), true); }
@Test public void testIntegrate10() throws TransformerConfigurationException, TransformerException, ParserConfigurationException, SAXException, IOException { String testId = "testIntegrate10"; System.out.println("running test: "+testId); IntegratorOutputNode root = new IntegratorOutputNode(); root.addDescendent("/itemEven", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/simpleItemEven.xml"))), false); root.addDescendent("/itemOdd", new PreConfiguredXMLReader(new InputSource(cl.getResourceAsStream("input/simpleItemOdd.xml"))), false); verify(root, testId.concat(".xml"), true); }