Skip to content

Commit

Permalink
Added dummy file so folder exists for test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Strum355 committed Sep 9, 2020
1 parent 589755f commit 1d27d68
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/spoon/support/compiler/SpoonPom.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public SpoonPom(String path, SpoonPom parent, MavenLauncher.SOURCE_TYPE sourceTy
}
}

public void addModule(SpoonPom module) {
private void addModule(SpoonPom module) {
modules.add(module);
}

Expand Down
5 changes: 1 addition & 4 deletions src/test/java/spoon/support/compiler/SpoonPomTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@
import spoon.support.StandardEnvironment;

import java.io.IOException;
<<<<<<< HEAD
import java.util.List;
import java.util.regex.Pattern;
=======
import java.nio.file.Paths;
>>>>>>> 7c8b18599... Added test for getting maven source directory from ancestors

import static org.junit.Assert.*;

Expand Down Expand Up @@ -69,6 +66,6 @@ public void checkSourceDirectory(String path, String expected) throws IOExceptio
SpoonPom childModel = pomModel.getModules().get(0);
//contract: source directory is derived from parent pom.xml if not declared in the current
// (childModel) SpoonPom
assertEquals(expected, childModel.getSourceDirectories().get(0).getAbsolutePath(), expected);
assertEquals(expected, childModel.getSourceDirectories().get(0).getAbsolutePath());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package maven-launcher.hierarchy.child.src;

public class Test {

}

0 comments on commit 1d27d68

Please sign in to comment.