@Test public void testExtractForNullInput() throws Exception { assertThat(instance.extractFromPdf(null), equalTo("")); }
public String extractFromPdf(String input) { if (input != null && input.endsWith(".pdf")) { Matcher m = p.matcher(input); if (m.find()) return m.group(); } return ""; }
BarcodeExtractor { public String extractFromPdf(String input) { if (input != null && input.endsWith(".pdf")) { Matcher m = p.matcher(input); if (m.find()) return m.group(); } return ""; } }
BarcodeExtractor { public String extractFromPdf(String input) { if (input != null && input.endsWith(".pdf")) { Matcher m = p.matcher(input); if (m.find()) return m.group(); } return ""; }  }
BarcodeExtractor { public String extractFromPdf(String input) { if (input != null && input.endsWith(".pdf")) { Matcher m = p.matcher(input); if (m.find()) return m.group(); } return ""; }  String extractFromPdf(String input); String extract(String input); }
BarcodeExtractor { public String extractFromPdf(String input) { if (input != null && input.endsWith(".pdf")) { Matcher m = p.matcher(input); if (m.find()) return m.group(); } return ""; }  String extractFromPdf(String input); String extract(String input); final static BarcodeExtractor instance; }