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
public void whenResourceUtils_thenReadSuccessful() throws IOException {
final String employees = new String(Files.readAllBytes(ResourceUtils.getFile("classpath:data/employees.dat")
.toPath()));
final File employeeFile = ResourceUtils.getFile("classpath:data/employees.dat");
final String employees = new String(Files.readAllBytes(employeeFile.toPath()));
assertEquals(EMPLOYEES_EXPECTED, employees);
}