@Test public void getSuffixesTest() { Feed feed = new Feed(); feed.setName("raw-logs"); WorkflowNameBuilder<Feed> builder = new WorkflowNameBuilder<Feed>(feed); String suffixes = builder .getWorkflowSuffixes("IVORY_FEED_REPLICATION_raw-logs_corp-1"); Assert.assertEquals(suffixes, "_corp-1"); suffixes = builder .getWorkflowSuffixes("IVORY_FEED_REPLICATION_raw-logs"); Assert.assertEquals(suffixes, ""); }
public String getWorkflowSuffixes(String workflowName) { return WorkflowName.getTagAndSuffixes(entity, workflowName) == null ? "" : WorkflowName.getTagAndSuffixes(entity, workflowName).second; }
WorkflowNameBuilder { public String getWorkflowSuffixes(String workflowName) { return WorkflowName.getTagAndSuffixes(entity, workflowName) == null ? "" : WorkflowName.getTagAndSuffixes(entity, workflowName).second; } }
WorkflowNameBuilder { public String getWorkflowSuffixes(String workflowName) { return WorkflowName.getTagAndSuffixes(entity, workflowName) == null ? "" : WorkflowName.getTagAndSuffixes(entity, workflowName).second; } WorkflowNameBuilder(T entity); }
WorkflowNameBuilder { public String getWorkflowSuffixes(String workflowName) { return WorkflowName.getTagAndSuffixes(entity, workflowName) == null ? "" : WorkflowName.getTagAndSuffixes(entity, workflowName).second; } WorkflowNameBuilder(T entity); void setTag(Tag tag); void setSuffixes(List<String> suffixes); WorkflowName getWorkflowName(); Tag getWorkflowTag(String workflowName); String getWorkflowSuffixes(String workflowName); }
WorkflowNameBuilder { public String getWorkflowSuffixes(String workflowName) { return WorkflowName.getTagAndSuffixes(entity, workflowName) == null ? "" : WorkflowName.getTagAndSuffixes(entity, workflowName).second; } WorkflowNameBuilder(T entity); void setTag(Tag tag); void setSuffixes(List<String> suffixes); WorkflowName getWorkflowName(); Tag getWorkflowTag(String workflowName); String getWorkflowSuffixes(String workflowName);  }