Skip to content

Commit

Permalink
test: Make CtInheritanceScanner architecture test print correct class…
Browse files Browse the repository at this point in the history
… name
  • Loading branch information
SirYwell authored Jul 13, 2021
1 parent 31a942e commit 8fdebb3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ public void testInterfacesAreCtScannable() {
interfaces.addInputResource("src/main/java/spoon/support/reflect/declaration");
interfaces.addInputResource("src/main/java/spoon/support/reflect/code");
interfaces.addInputResource("src/main/java/spoon/support/reflect/reference");
interfaces.addInputResource("src/main/java/spoon/reflect/visitor/CtScanner.java");
interfaces.buildModel();

CtClass<?> ctScanner = interfaces.getFactory().Class().get(CtInheritanceScanner.class);
Expand All @@ -355,7 +354,7 @@ public void testInterfacesAreCtScannable() {
}
});

assertTrue("The following methods are missing in CtScanner: \n" + StringUtils.join(missingMethods, "\n"), missingMethods.isEmpty());
assertTrue("The following methods are missing in " + ctScanner.getSimpleName() + ": \n" + StringUtils.join(missingMethods, "\n"), missingMethods.isEmpty());
}

@Test
Expand Down

0 comments on commit 8fdebb3

Please sign in to comment.