fix spring-core mockito issue
This commit is contained in:
parent
be9eed4fd7
commit
3220d1b958
|
@ -85,6 +85,7 @@
|
||||||
<lombok.version>1.16.12</lombok.version>
|
<lombok.version>1.16.12</lombok.version>
|
||||||
<commons.io.version>2.5</commons.io.version>
|
<commons.io.version>2.5</commons.io.version>
|
||||||
<spring-boot.version>1.5.2.RELEASE</spring-boot.version>
|
<spring-boot.version>1.5.2.RELEASE</spring-boot.version>
|
||||||
|
<mockito.version>1.10.19</mockito.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
|
@ -108,8 +108,7 @@ public class SpringResourceIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenClassPathResourceWithRelativePath_thenReadSuccessful() throws IOException {
|
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()));
|
final String employees = new String(Files.readAllBytes(resource.toPath()));
|
||||||
assertEquals(EMPLOYEES_EXPECTED, employees);
|
assertEquals(EMPLOYEES_EXPECTED, employees);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue