@Test public void positive() { assertEquals("prefix_name", victim.process("prefix_", nameRequest().originalName("name"))); }
@Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && isNotBlank(request.getOriginalName())) { return inputPrefix + request.getOriginalName(); } return inputPrefix; }
PrependPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && isNotBlank(request.getOriginalName())) { return inputPrefix + request.getOriginalName(); } return inputPrefix; } }
PrependPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && isNotBlank(request.getOriginalName())) { return inputPrefix + request.getOriginalName(); } return inputPrefix; }  }
PrependPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && isNotBlank(request.getOriginalName())) { return inputPrefix + request.getOriginalName(); } return inputPrefix; }  @Override String process(String inputPrefix, NameGenerationRequest request); }
PrependPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && isNotBlank(request.getOriginalName())) { return inputPrefix + request.getOriginalName(); } return inputPrefix; }  @Override String process(String inputPrefix, NameGenerationRequest request);  }