Skip to content

Commit

Permalink
Limit compliance tests to public methods (#2747)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment authored Oct 5, 2024
1 parent 84b0a0d commit c54a3a5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ void testMethodsThatReturnRestActionHaveCorrectAnnotations()
methods()
.that()
.haveRawReturnType(assignableTo(RestAction.class))
.and()
.arePublic()
.should()
.beAnnotatedWith(CheckReturnValue.class)
.andShould()
Expand All @@ -54,6 +56,8 @@ void testMethodsThatReturnCompletableFutureHaveCorrectAnnotations()
methods()
.that()
.haveRawReturnType(assignableTo(CompletableFuture.class))
.and()
.arePublic()
.should()
.beAnnotatedWith(CheckReturnValue.class)
.andShould()
Expand Down

0 comments on commit c54a3a5

Please sign in to comment.