Code Review changes

Refactored : whenResourceUtils_thenReadSuccessful
This commit is contained in:
Tritty 2018-06-15 19:06:40 +05:30
parent cca20da9e3
commit 52092ffd70

View File

@ -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);
} }