Test the reason for build failure
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user