diff options
Diffstat (limited to 'messagebus/src/test/java/com/yahoo/messagebus/RateThrottlingTestCase.java')
-rw-r--r-- | messagebus/src/test/java/com/yahoo/messagebus/RateThrottlingTestCase.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/messagebus/src/test/java/com/yahoo/messagebus/RateThrottlingTestCase.java b/messagebus/src/test/java/com/yahoo/messagebus/RateThrottlingTestCase.java index f52cb1df2fe..5e579f5d622 100644 --- a/messagebus/src/test/java/com/yahoo/messagebus/RateThrottlingTestCase.java +++ b/messagebus/src/test/java/com/yahoo/messagebus/RateThrottlingTestCase.java @@ -2,15 +2,15 @@ package com.yahoo.messagebus; import com.yahoo.messagebus.test.SimpleMessage; -import org.junit.Test; +import org.junit.jupiter.api.Test; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; public class RateThrottlingTestCase { @Test - public void testPending() { + void testPending() { CustomTimer timer = new CustomTimer(); RateThrottlingPolicy policy = new RateThrottlingPolicy(5.0, timer); policy.setMaxPendingCount(200); @@ -35,7 +35,7 @@ public class RateThrottlingTestCase { } @Test - public void testRates() { + void testRates() { assertEquals(10, getActualRate(0.1), 1); assertEquals(1000, getActualRate(10), 100); assertEquals(500, getActualRate(5), 50); |