Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

review chore: Upgrade JDT version #2052

Merged
merged 8 commits into from
Jun 13, 2018
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@

<dependencies>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.core</artifactId>
<version>3.13.50.v20171007-0855</version>
<version>3.13.102</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
13 changes: 11 additions & 2 deletions src/test/java/spoon/MavenLauncherTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,22 @@ public void spoonMavenLauncherTest() {
// without the tests
MavenLauncher launcher = new MavenLauncher("./", MavenLauncher.SOURCE_TYPE.APP_SOURCE);

assertEquals(10, launcher.getEnvironment().getSourceClasspath().length);
// The sourceClasspath seems to change depending on the machine:
// I suspect that the config bring in .m2/settings.xml play a role
// on my machine (Simon U.) and on spoon3r CI machine we got 2 libraries less
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#2057 should fix it


//assertEquals(15, launcher.getEnvironment().getSourceClasspath().length);
assertTrue(launcher.getEnvironment().getSourceClasspath().length > 10);

// 56 because of the sub folders of src/main/java
assertEquals(58, launcher.getModelBuilder().getInputSources().size());

// with the tests
launcher = new MavenLauncher("./", MavenLauncher.SOURCE_TYPE.ALL_SOURCE);
assertEquals(17, launcher.getEnvironment().getSourceClasspath().length);

//assertEquals(22, launcher.getEnvironment().getSourceClasspath().length);
assertTrue(launcher.getEnvironment().getSourceClasspath().length >= 20);

// 236 because of the sub folders of src/main/java and src/test/java
assertTrue("size: "+launcher.getModelBuilder().getInputSources().size(), launcher.getModelBuilder().getInputSources().size() >= 220);

Expand Down