@Test public void testUnescapedRegexInBasename() { String prefix = "[BASENAME]"; String originalName = "x$5.pdf"; String expected = "x$5"; assertEquals(expected, victim.process(prefix, nameRequest().originalName(originalName))); }
@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);  }