@Test public void testBuild() { final String pipelineName = "PipelineName"; final String nodeName = "outputNode"; DoNode doNode = DoNode.createOutputNode(nodeName, Writables.strings()); JobNameBuilder jobNameBuilder = new JobNameBuilder(pipelineName); jobNameBuilder.visit(Lists.newArrayList(doNode)); String jobName = jobNameBuilder.build(); assertEquals(String.format("%s: %s", pipelineName, nodeName), jobName); }
public String build() { return String.format("%s: %s", pipelineName, JOINER.join(rootStack)); }
JobNameBuilder { public String build() { return String.format("%s: %s", pipelineName, JOINER.join(rootStack)); } }
JobNameBuilder { public String build() { return String.format("%s: %s", pipelineName, JOINER.join(rootStack)); } JobNameBuilder(final String pipelineName); }
JobNameBuilder { public String build() { return String.format("%s: %s", pipelineName, JOINER.join(rootStack)); } JobNameBuilder(final String pipelineName); void visit(DoNode node); void visit(List<DoNode> nodes); String build(); }
JobNameBuilder { public String build() { return String.format("%s: %s", pipelineName, JOINER.join(rootStack)); } JobNameBuilder(final String pipelineName); void visit(DoNode node); void visit(List<DoNode> nodes); String build();  }