@Test public void positive() { assertEquals("34_prefix_", victim.process("prefix_", nameRequest().page(34))); }
@Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && nonNull(request.getPage())) { return String.format("%d_%s", request.getPage(), inputPrefix); } return inputPrefix; }
PrependPageNumberPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && nonNull(request.getPage())) { return String.format("%d_%s", request.getPage(), inputPrefix); } return inputPrefix; } }
PrependPageNumberPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && nonNull(request.getPage())) { return String.format("%d_%s", request.getPage(), inputPrefix); } return inputPrefix; }  }
PrependPageNumberPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && nonNull(request.getPage())) { return String.format("%d_%s", request.getPage(), inputPrefix); } return inputPrefix; }  @Override String process(String inputPrefix, NameGenerationRequest request); }
PrependPageNumberPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && nonNull(request.getPage())) { return String.format("%d_%s", request.getPage(), inputPrefix); } return inputPrefix; }  @Override String process(String inputPrefix, NameGenerationRequest request);  }