Skip to content

Commit

Permalink
Add a test to show the bug of INRIA#1320
Browse files Browse the repository at this point in the history
  • Loading branch information
surli committed May 22, 2017
1 parent 4a41286 commit e5bc2a6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/java/spoon/test/imports/ImportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -915,4 +915,16 @@ public void testSuperInheritanceHierarchyFunctionNoClasspath() {
types = classUSC.getSuperclass().map(new SuperInheritanceHierarchyFunction().includingSelf(true)).list();
assertEquals(0, types.size());
}

@Test
public void testJavaLangIsConsideredAsImported() {
final Launcher launcher = new Launcher();
launcher.getEnvironment().setAutoImports(false);
String outputDir = "./target/spooned-javalang";
launcher.addInputResource("./src/test/java/spoon/test/imports/testclasses2/JavaLangConflict.java");
launcher.setSourceOutputDirectory(outputDir);
launcher.run();

canBeBuilt(outputDir, 7);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package spoon.test.imports.testclasses2;

/**
* Created by urli on 22/05/2017.
*/
public class JavaLangConflict {
}

0 comments on commit e5bc2a6

Please sign in to comment.