Test the reason for build failure

This commit is contained in:
BoykoAlex
2018-11-07 18:38:45 -05:00
parent 1abefb76c3
commit 94bc7f8a3e
2 changed files with 5 additions and 10 deletions

View File

@@ -87,7 +87,11 @@ public class MavenProjectClasspath implements IClasspath {
if (javaVersion == null) {
javaVersion = "8";
}
cpe.setSourceContainerUrl(BootProjectUtil.jreSources(path).toUri().toURL());
try {
cpe.setSourceContainerUrl(BootProjectUtil.jreSources(path).toUri().toURL());
} catch (Throwable t) {
t.printStackTrace();
}
cpe.setJavadocContainerUrl(new URL("https://docs.oracle.com/javase/" + javaVersion + "/docs/api/"));
cpe.setSystem(true);
entries.add(cpe);

View File

@@ -67,9 +67,6 @@ public class JavaIndexTest {
.collectSortedList((o1, o2) -> o2.getT2().compareTo(o1.getT2()))
.block();
assertTrue(results.size() > 10);
// results.forEach(res -> {
// System.out.println("Found type: " + res.getT1());
// });
IType type = results.get(0).getT1();
System.out.println(type.getFullyQualifiedName() + ": " + type.getBindingKey());
assertEquals("java.util.Map", type.getFullyQualifiedName());
@@ -83,9 +80,6 @@ public class JavaIndexTest {
.collectSortedList((o1, o2) -> o2.getT2().compareTo(o1.getT2()))
.block();
assertTrue(results.size() > 10);
// results.forEach(res -> {
// System.out.println("Found type: " + res.getT1());
// });
IType type = results.get(0).getT1();
System.out.println(type.getFullyQualifiedName() + ": " + type.getBindingKey());
assertEquals("java.util.EnumMap$KeySet", type.getFullyQualifiedName());
@@ -99,9 +93,6 @@ public class JavaIndexTest {
.collectSortedList((o1, o2) -> o2.getT2().compareTo(o1.getT2()))
.block();
assertTrue(results.size() > 10);
results.forEach(res -> {
System.out.println("Found result: " + res.getT1());
});
assertEquals("java.util", results.get(0).getT1());
}