@Test public void testRemoveBase64Data() throws Exception { ScreenshotDiv testling = new ScreenshotDiv(); testling.setId("test-id"); testling.setFormat("jpg"); testling.setBase64screenshot("00001111"); String result = ScreenshotDivConverter.removeBase64ImageDataString(testling.getPayloadString()); assertEquals(result, "<div id=\"test-id\">" + "<div id=\"openModal_test-id\" class=\"modalDialog\">" + "<a href=\"#close\" title=\"Close\" class=\"close\">Close X</a>" + "<a href=\"#openModal_test-id\"><img class=\"screenshot\" src=\"\" ></a>" + "</div>" + "</div>"); String srcString2 = "blas\nblakdfakdfjie"; assertEquals(srcString2, ScreenshotDivConverter.removeBase64ImageDataString(srcString2)); }
public static String removeBase64ImageDataString(String string) { if (StringUtils.isNotEmpty(string)) { return string.replaceAll(REGEX_SRC_DATA_IMAGE_BASE64, "src=\"\" >"); } return string; }
ScreenshotDivConverter { public static String removeBase64ImageDataString(String string) { if (StringUtils.isNotEmpty(string)) { return string.replaceAll(REGEX_SRC_DATA_IMAGE_BASE64, "src=\"\" >"); } return string; } }
ScreenshotDivConverter { public static String removeBase64ImageDataString(String string) { if (StringUtils.isNotEmpty(string)) { return string.replaceAll(REGEX_SRC_DATA_IMAGE_BASE64, "src=\"\" >"); } return string; }  }
ScreenshotDivConverter { public static String removeBase64ImageDataString(String string) { if (StringUtils.isNotEmpty(string)) { return string.replaceAll(REGEX_SRC_DATA_IMAGE_BASE64, "src=\"\" >"); } return string; }  static String removeBase64ImageDataString(String string); ScreenshotDiv convert(Exception e); }
ScreenshotDivConverter { public static String removeBase64ImageDataString(String string) { if (StringUtils.isNotEmpty(string)) { return string.replaceAll(REGEX_SRC_DATA_IMAGE_BASE64, "src=\"\" >"); } return string; }  static String removeBase64ImageDataString(String string); ScreenshotDiv convert(Exception e); static final String REGEX_SRC_DATA_IMAGE_BASE64; }