@Test(expected = IOException.class) public void shouldReturnIOExceptionWhenNonExistingPath() throws IOException, URISyntaxException { sut.getSolution("I Don't exist"); fail("it shouldn't reach here"); }
@Test public void shouldReturnExpectedOutcomeWhenRecursiveReadingStrategyUsed() throws IOException, URISyntaxException { sut.getSolution("C:\\temp\\carlos"); assertThat(outContent.toString()) .isEqualTo( "File New Text Document (2).txt contains 0 lines\n" + "File New Text Document.txt contains 0 lines\n"); }