Make the test Java8/9 compliant

Change-Id: I0052c6dbb8a667ddd7a32706ee088f728f02cc20
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
6.19.x
Florent BENOIT 2017-10-24 11:28:01 +02:00
parent c7d34fb46f
commit cfc9751733
1 changed files with 3 additions and 2 deletions

View File

@ -48,8 +48,9 @@ public class IoUtilTest {
URI codenvyDir = URI.create("jar:" + testJar + "!/");
List<String> resources = new ArrayList<>();
IoUtil.listResources(codenvyDir, path -> resources.add(path.getFileName().toString()));
IoUtil.listResources(
codenvyDir, path -> resources.add(path.getFileName().toString().replace("/", "")));
assertTrue(resources.contains("codenvy/"));
assertTrue(resources.contains("codenvy"));
}
}