Skip to content

Commit

Permalink
Added test case for INRIA#1100.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Steinbeck committed Jan 11, 2017
1 parent e60e3ab commit b953f17
Show file tree
Hide file tree
Showing 2 changed files with 868 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/java/spoon/test/reference/ExecutableReferenceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,14 @@ public boolean matches(CtInvocation element) {
}).get(0);
assertNotNull(invocation.getExecutable().getExecutableDeclaration());
}

@Test
public void testLambdaNoClasspath() {
final Launcher launcher = new Launcher();
// Throws `IllegalStateException` before PR #1100 due to invalid AST
// hierarchy.
launcher.addInputResource("./src/test/resources/noclasspath/org/elasticsearch/action/admin/cluster/node/tasks");
launcher.getEnvironment().setNoClasspath(true);
launcher.buildModel();
}
}
Loading

0 comments on commit b953f17

Please sign in to comment.