Code Review changes
Refactored : whenResourceUtils_thenReadSuccessful
This commit is contained in:
parent
cca20da9e3
commit
52092ffd70
@ -77,8 +77,8 @@ public class SpringResourceIntegrationTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenResourceUtils_thenReadSuccessful() throws IOException {
|
public void whenResourceUtils_thenReadSuccessful() throws IOException {
|
||||||
final String employees = new String(Files.readAllBytes(ResourceUtils.getFile("classpath:data/employees.dat")
|
final File employeeFile = ResourceUtils.getFile("classpath:data/employees.dat");
|
||||||
.toPath()));
|
final String employees = new String(Files.readAllBytes(employeeFile.toPath()));
|
||||||
assertEquals(EMPLOYEES_EXPECTED, employees);
|
assertEquals(EMPLOYEES_EXPECTED, employees);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user