Skip to content

Commit

Permalink
fix MainTest#testTest ignoring spoon.metamodel.* package
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky committed Oct 24, 2017
1 parent 1ab30a3 commit 1e25412
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/spoon/test/main/MainTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ public void testTest() throws Exception {
// if one analyzes src/main/java and src/test/java at the same time
// this helps a lot to easily automatically differentiate app classes and test classes
for (CtType t : launcher.getFactory().getModel().getAllTypes()) {
if (t.getPackage().getQualifiedName().equals("spoon.metamodel")) {
continue;
}
assertTrue(t.getQualifiedName() + " is not clearly a test class, it should contain 'test' either in its package name or class name", t.getQualifiedName().matches("(?i:.*test.*)"));
}
}
Expand Down

0 comments on commit 1e25412

Please sign in to comment.