Skip to content

Commit

Permalink
test: ChangeCollector on compilation unit
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky committed Nov 29, 2018
1 parent 1760c98 commit 3267db2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/spoon/test/change/ChangeCollectorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public void testChangeCollector() throws Exception {
assertEquals(new HashSet<>(Arrays.asList(CtRole.CONTAINED_TYPE)), changeCollector.getChanges(ctClass.getPackage()));
assertEquals(new HashSet<>(Arrays.asList()), changeCollector.getDirectChanges(ctClass.getPackage()));

assertEquals(new HashSet<>(Arrays.asList(CtRole.DECLARED_TYPE)), changeCollector.getChanges(ctClass.getPosition().getCompilationUnit()));
assertEquals(new HashSet<>(Arrays.asList()), changeCollector.getDirectChanges(ctClass.getPosition().getCompilationUnit()));

assertEquals(new HashSet<>(Arrays.asList(CtRole.NAME)), changeCollector.getChanges(ctClass));
assertEquals(new HashSet<>(Arrays.asList(CtRole.NAME)), changeCollector.getDirectChanges(ctClass));

Expand Down

0 comments on commit 3267db2

Please sign in to comment.