Skip to content

Commit

Permalink
Update archunit/src/main/java/com/tngtech/archunit/library/GeneralCod…
Browse files Browse the repository at this point in the history
…ingRules.java

Co-authored-by: Manfred Hanke <[email protected]>
  • Loading branch information
krzysztof-owczarek and hankem authored Feb 10, 2025
1 parent 22a38aa commit 93a9568
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,7 @@ private boolean allPossibleTestClassesHaveImplementationInRightPackage(List<Java
return possibleTestClasses.stream()
.allMatch(testClazz -> classesByPackageName.getOrDefault(testClazz.getPackageName(), emptyList())
.stream()
.filter(clazz -> !testClazz.getSimpleName().equals(clazz.getSimpleName()))
.anyMatch(clazz -> testClazz.getSimpleName().startsWith(clazz.getSimpleName())));
.anyMatch(clazz -> testClazz.getSimpleName().equals(clazz.getSimpleName() + testClassSuffix)));
}
};
}
Expand Down

0 comments on commit 93a9568

Please sign in to comment.