Read the content of the given file using our classloader. @param fileName the file name @return the content as string @throws IOException in case of error
(final String fileName)
| 549 | * @throws IOException in case of error |
| 550 | */ |
| 551 | protected String getFileContent(final String fileName) throws IOException { |
| 552 | final InputStream stream = getClass().getClassLoader().getResourceAsStream(fileName); |
| 553 | assertNotNull(fileName, stream); |
| 554 | return IOUtils.toString(stream, ISO_8859_1); |
| 555 | } |
| 556 | |
| 557 | protected void compareImages(final String expected, final String current) throws IOException { |
| 558 | final String currentBase64Image = current.split(",")[1]; |
no test coverage detected