RateLimiter fix (#2229)

This commit is contained in:
Grzegorz Piwowarek 2017-07-08 08:43:14 +02:00 committed by GitHub
parent 647455b029
commit c598b937f0
3 changed files with 5 additions and 5 deletions

View File

@ -3,11 +3,11 @@ package org.baeldung.guava;
public class CustomEvent {
private String action;
public CustomEvent(String action) {
CustomEvent(String action) {
this.action = action;
}
public String getAction() {
String getAction() {
return action;
}

View File

@ -28,11 +28,11 @@ public class EventListener {
eventsHandled++;
}
public int getEventsHandled() {
int getEventsHandled() {
return eventsHandled;
}
public void resetEventsHandled() {
void resetEventsHandled() {
eventsHandled = 0;
}
}

View File

@ -10,7 +10,7 @@ import java.util.stream.IntStream;
import static org.assertj.core.api.Assertions.assertThat;
public class RateLimiterUnitTest {
public class RateLimiterLongRunningUnitTest {
@Test
public void givenLimitedResource_whenUseRateLimiter_thenShouldLimitPermits() {