Skip to content

Commit

Permalink
objectionary#3058: jtcop-maven-plugin:1.2.4:check (default)
Browse files Browse the repository at this point in the history
  • Loading branch information
levBagryansky committed Apr 28, 2024
1 parent b60910c commit ac4be01
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
* Test that all EO.. classes are public.
* @since 0.38
*/
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
public class EoClassesArePublicTest {

@Test
Expand All @@ -55,6 +56,7 @@ public void arePublic() throws IOException {
assert !clazzes.isEmpty();
Logger.info(this.getClass(), "Found %d EO classes", clazzes.size());
MatcherAssert.assertThat(
"All EO.. classes should be public",
clazzes.stream()
.filter(clazz -> !Modifier.isPublic(clazz.getModifiers()))
.collect(Collectors.toList()),
Expand All @@ -67,6 +69,7 @@ public void arePublic() throws IOException {
* @param clazz Class.
* @return True if is.
*/
@SuppressWarnings("JTCOP.RulePresentTense")
private static boolean isEoClass(final Class<?> clazz) {
return clazz.getSimpleName().startsWith("EO")
&& Phi.class.isAssignableFrom(clazz);
Expand Down

0 comments on commit ac4be01

Please sign in to comment.