BAEL-255 - minor changes
This commit is contained in:
parent
7b587286a4
commit
ea39b9cacf
|
@ -1 +0,0 @@
|
||||||
Hello World from fileTest_2.txt!!!
|
|
|
@ -36,10 +36,10 @@ public class FileOperationsTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenFileNameAsAbsolutePath_whenUsingClasspath_thenFileData() throws IOException {
|
public void givenFileNameAsAbsolutePath_whenUsingClasspath_thenFileData() throws IOException {
|
||||||
String expectedData = "Hello World from fileTest_2.txt!!!";
|
String expectedData = "Hello World from fileTest.txt!!!";
|
||||||
|
|
||||||
Class clazz = FileOperationsTest.class;
|
Class clazz = FileOperationsTest.class;
|
||||||
InputStream inputStream = clazz.getResourceAsStream("/fileTest_2.txt");
|
InputStream inputStream = clazz.getResourceAsStream("/fileTest.txt");
|
||||||
String data = readFromInputStream(inputStream);
|
String data = readFromInputStream(inputStream);
|
||||||
|
|
||||||
Assert.assertEquals(expectedData, data.trim());
|
Assert.assertEquals(expectedData, data.trim());
|
||||||
|
|
Loading…
Reference in New Issue