Test the reason for build failure
This commit is contained in:
@@ -87,7 +87,11 @@ public class MavenProjectClasspath implements IClasspath {
|
|||||||
if (javaVersion == null) {
|
if (javaVersion == null) {
|
||||||
javaVersion = "8";
|
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.setJavadocContainerUrl(new URL("https://docs.oracle.com/javase/" + javaVersion + "/docs/api/"));
|
||||||
cpe.setSystem(true);
|
cpe.setSystem(true);
|
||||||
entries.add(cpe);
|
entries.add(cpe);
|
||||||
|
|||||||
@@ -67,9 +67,6 @@ public class JavaIndexTest {
|
|||||||
.collectSortedList((o1, o2) -> o2.getT2().compareTo(o1.getT2()))
|
.collectSortedList((o1, o2) -> o2.getT2().compareTo(o1.getT2()))
|
||||||
.block();
|
.block();
|
||||||
assertTrue(results.size() > 10);
|
assertTrue(results.size() > 10);
|
||||||
// results.forEach(res -> {
|
|
||||||
// System.out.println("Found type: " + res.getT1());
|
|
||||||
// });
|
|
||||||
IType type = results.get(0).getT1();
|
IType type = results.get(0).getT1();
|
||||||
System.out.println(type.getFullyQualifiedName() + ": " + type.getBindingKey());
|
System.out.println(type.getFullyQualifiedName() + ": " + type.getBindingKey());
|
||||||
assertEquals("java.util.Map", type.getFullyQualifiedName());
|
assertEquals("java.util.Map", type.getFullyQualifiedName());
|
||||||
@@ -83,9 +80,6 @@ public class JavaIndexTest {
|
|||||||
.collectSortedList((o1, o2) -> o2.getT2().compareTo(o1.getT2()))
|
.collectSortedList((o1, o2) -> o2.getT2().compareTo(o1.getT2()))
|
||||||
.block();
|
.block();
|
||||||
assertTrue(results.size() > 10);
|
assertTrue(results.size() > 10);
|
||||||
// results.forEach(res -> {
|
|
||||||
// System.out.println("Found type: " + res.getT1());
|
|
||||||
// });
|
|
||||||
IType type = results.get(0).getT1();
|
IType type = results.get(0).getT1();
|
||||||
System.out.println(type.getFullyQualifiedName() + ": " + type.getBindingKey());
|
System.out.println(type.getFullyQualifiedName() + ": " + type.getBindingKey());
|
||||||
assertEquals("java.util.EnumMap$KeySet", type.getFullyQualifiedName());
|
assertEquals("java.util.EnumMap$KeySet", type.getFullyQualifiedName());
|
||||||
@@ -99,9 +93,6 @@ public class JavaIndexTest {
|
|||||||
.collectSortedList((o1, o2) -> o2.getT2().compareTo(o1.getT2()))
|
.collectSortedList((o1, o2) -> o2.getT2().compareTo(o1.getT2()))
|
||||||
.block();
|
.block();
|
||||||
assertTrue(results.size() > 10);
|
assertTrue(results.size() > 10);
|
||||||
results.forEach(res -> {
|
|
||||||
System.out.println("Found result: " + res.getT1());
|
|
||||||
});
|
|
||||||
assertEquals("java.util", results.get(0).getT1());
|
assertEquals("java.util", results.get(0).getT1());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user