@Test public void testProcessNullRequest() { String prefix = "blabla"; assertEquals(prefix, victim.process(prefix, null)); }
@Override public String process(String inputPrefix, NameGenerationRequest request) { if (request != null && StringUtils.isNotBlank(request.getExtension())) { return String.format("%s.%s", inputPrefix, request.getExtension()); } return inputPrefix; }
AppendExtensionPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (request != null && StringUtils.isNotBlank(request.getExtension())) { return String.format("%s.%s", inputPrefix, request.getExtension()); } return inputPrefix; } }
AppendExtensionPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (request != null && StringUtils.isNotBlank(request.getExtension())) { return String.format("%s.%s", inputPrefix, request.getExtension()); } return inputPrefix; }  }
AppendExtensionPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (request != null && StringUtils.isNotBlank(request.getExtension())) { return String.format("%s.%s", inputPrefix, request.getExtension()); } return inputPrefix; }  @Override String process(String inputPrefix, NameGenerationRequest request); }
AppendExtensionPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (request != null && StringUtils.isNotBlank(request.getExtension())) { return String.format("%s.%s", inputPrefix, request.getExtension()); } return inputPrefix; }  @Override String process(String inputPrefix, NameGenerationRequest request);  }