BAEL-255 - minor changes

This commit is contained in:
slavisa-baeldung 2016-10-05 07:16:32 +02:00
parent db25745f05
commit ece6eab719
1 changed files with 0 additions and 12 deletions

View File

@ -56,18 +56,6 @@ public class FileOperationsTest {
Assert.assertThat(data.trim(), CoreMatchers.containsString(expectedData)); Assert.assertThat(data.trim(), CoreMatchers.containsString(expectedData));
} }
/*@Test
public void givenFileName_whenUsingJarFile_thenFileData() throws IOException {
String expectedData = "BSD License";
Class clazz = Matchers.class;
ClassLoader classLoader = clazz.getClassLoader();
InputStream inputStream = classLoader.getResourceAsStream("LICENSE.txt");
String data = readFromInputStream(inputStream);
Assert.assertThat(data.trim(), CoreMatchers.containsString(expectedData));
}*/
@Test @Test
public void givenURLName_whenUsingURL_thenFileData() throws IOException { public void givenURLName_whenUsingURL_thenFileData() throws IOException {
String expectedData = "Baeldung"; String expectedData = "Baeldung";