@Test public void nullName() { String prefix = "prefix_[BASENAME]"; assertEquals(prefix, victim.process(prefix, nameRequest())); }
@Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && isNotBlank(request.getOriginalName())) { return inputPrefix.replace("[BASENAME]", request.getOriginalName()); } return inputPrefix; }
BasenamePrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && isNotBlank(request.getOriginalName())) { return inputPrefix.replace("[BASENAME]", request.getOriginalName()); } return inputPrefix; } }
BasenamePrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && isNotBlank(request.getOriginalName())) { return inputPrefix.replace("[BASENAME]", request.getOriginalName()); } return inputPrefix; }  }
BasenamePrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && isNotBlank(request.getOriginalName())) { return inputPrefix.replace("[BASENAME]", request.getOriginalName()); } return inputPrefix; }  @Override String process(String inputPrefix, NameGenerationRequest request); }
BasenamePrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && isNotBlank(request.getOriginalName())) { return inputPrefix.replace("[BASENAME]", request.getOriginalName()); } return inputPrefix; }  @Override String process(String inputPrefix, NameGenerationRequest request);  }