Code Review changes
Refactored : whenResourceUtils_thenReadSuccessful
This commit is contained in:
parent
cca20da9e3
commit
52092ffd70
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user