Skip to content

Commit

Permalink
Add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosbarbero committed Oct 12, 2019
1 parent 48b07c7 commit 407672a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@ public void doNotApplyRole() {
boolean apply = RateLimitType.ROLE.apply(httpServletRequest, route, rateLimitUtils, "user");
assertThat(apply).isFalse();
}

@Test
public void withEmptyAuthentication() {
boolean apply = RateLimitType.ROLE.apply(httpServletRequest, route, rateLimitUtils, "user");
assertThat(apply).isFalse();
}
}

0 comments on commit 407672a

Please sign in to comment.