@Test public void graphNameNotNull() { final String graphName = randomString() + "GN"; final String namespace = randomString() + "NS"; final JobInstance instance = new JobInstance(); instance.setNamespace(namespace); instance.setNamespace(graphName); assertEquals(graphName, cut.graphName(instance)); }
String graphName(final JobInstance instance) { return isNotNullAndNotEmpty(instance.getGraphName()) ? instance.getGraphName() : instance.getNamespace(); }
SynchXmlDocumentTranslator implements Processor, ApplicationContextAware { String graphName(final JobInstance instance) { return isNotNullAndNotEmpty(instance.getGraphName()) ? instance.getGraphName() : instance.getNamespace(); } }
SynchXmlDocumentTranslator implements Processor, ApplicationContextAware { String graphName(final JobInstance instance) { return isNotNullAndNotEmpty(instance.getGraphName()) ? instance.getGraphName() : instance.getNamespace(); }  }
SynchXmlDocumentTranslator implements Processor, ApplicationContextAware { String graphName(final JobInstance instance) { return isNotNullAndNotEmpty(instance.getGraphName()) ? instance.getGraphName() : instance.getNamespace(); }  @Override final void process(final Exchange exchange); @Override void setApplicationContext(final ApplicationContext context); }
SynchXmlDocumentTranslator implements Processor, ApplicationContextAware { String graphName(final JobInstance instance) { return isNotNullAndNotEmpty(instance.getGraphName()) ? instance.getGraphName() : instance.getNamespace(); }  @Override final void process(final Exchange exchange); @Override void setApplicationContext(final ApplicationContext context);  }