Skip to content

Commit

Permalink
extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 13, 2025
1 parent 2b0f895 commit b409a2e
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ void mojosAreInPlace() {
.and().doNotHaveSimpleName("SafeMojo")
.should().resideInAPackage("org.eolang.maven")
.andShould().bePublic()
.andShould().beTopLevelClasses()
.check(new ClassFileImporter().importPackages("org.eolang.maven"));
}

@Test
void mojosHaveOneParent() {
ArchRuleDefinition.classes()
.that().haveSimpleNameEndingWith("Mojo")
.and().doNotHaveSimpleName("SafeMojo")
.should()
.beAssignableTo(SafeMojo.class)
.check(new ClassFileImporter().importPackages("org.eolang.maven"));
}

Expand Down

0 comments on commit b409a2e

Please sign in to comment.