@Test public void testGetPipeDelimited() { DataPipe thePipe = new DataPipe(); thePipe.getDataMap().put("var1", "var1val"); thePipe.getDataMap().put("var2", "var2val"); thePipe.getDataMap().put("var3", "var3val"); thePipe.getDataMap().put("var4", "var4val"); thePipe.getDataMap().put("var5", "var5val"); String[] outTemplate = new String[]{ "var1", "var2", "var3", "var4", "var5" }; Assert.assertEquals(5, thePipe.getDataMap().size()); Assert.assertEquals("var1val|var2val|var3val|var4val|var5val", thePipe.getPipeDelimited(outTemplate)); }
public String getPipeDelimited(String[] outTemplate) { return getDelimited(outTemplate, "|"); }
DataPipe { public String getPipeDelimited(String[] outTemplate) { return getDelimited(outTemplate, "|"); } }
DataPipe { public String getPipeDelimited(String[] outTemplate) { return getDelimited(outTemplate, "|"); } DataPipe();  DataPipe(final DataConsumer dataConsumer);  DataPipe(final long maxNumberOfLines, final AtomicBoolean flag); }
DataPipe { public String getPipeDelimited(String[] outTemplate) { return getDelimited(outTemplate, "|"); } DataPipe();  DataPipe(final DataConsumer dataConsumer);  DataPipe(final long maxNumberOfLines, final AtomicBoolean flag); DataConsumer getDataConsumer(); Map<String, String> getDataMap(); String getPipeDelimited(String[] outTemplate); String getDelimited(String[] outTemplate, String separator); }
DataPipe { public String getPipeDelimited(String[] outTemplate) { return getDelimited(outTemplate, "|"); } DataPipe();  DataPipe(final DataConsumer dataConsumer);  DataPipe(final long maxNumberOfLines, final AtomicBoolean flag); DataConsumer getDataConsumer(); Map<String, String> getDataMap(); String getPipeDelimited(String[] outTemplate); String getDelimited(String[] outTemplate, String separator);  }