Skip to content

Commit

Permalink
Improve module arch test method names
Browse files Browse the repository at this point in the history
  • Loading branch information
ole-ve committed Oct 15, 2024
1 parent d41f968 commit 8561759
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ void shouldOnlyAccessApiDomainDto() {
}

@Test
void testApiInheritsAbstractApi() {
void apiClassesShouldInheritFromAbstractApi() {
classes().that().resideInAPackage(getModuleApiSubpackage()).should().beAssignableTo(AbstractApi.class).check(productionClasses);
}

@Test
void testApiIsController() {
void apiClassesShouldBeAbstractOrAnnotatedWithController() {
classes().that().resideInAPackage(getModuleApiSubpackage()).should(beAbstractOrAnnotatedWithController()).check(productionClasses);
}

Expand Down

0 comments on commit 8561759

Please sign in to comment.