fix spring-core mockito issue
This commit is contained in:
@@ -108,8 +108,7 @@ public class SpringResourceIntegrationTest {
|
||||
|
||||
@Test
|
||||
public void whenClassPathResourceWithRelativePath_thenReadSuccessful() throws IOException {
|
||||
// final File resource = new ClassPathResource("../../../data/employees.dat", SpringResourceIntegrationTest.class).getFile();
|
||||
final File resource = new ClassPathResource("/data/employees.dat", SpringResourceIntegrationTest.class).getFile();
|
||||
final File resource = new ClassPathResource("../../../data/employees.dat", SpringResourceIntegrationTest.class).getFile();
|
||||
final String employees = new String(Files.readAllBytes(resource.toPath()));
|
||||
assertEquals(EMPLOYEES_EXPECTED, employees);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user