diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-03-25 12:26:48 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-03-25 12:26:48 +0100 |
commit | 7dc2393d9e203c14a8e679968841cb68aa753595 (patch) | |
tree | 137271a5dd25ba079cb107b7212c03c0d26b745e /jdisc_core | |
parent | 9de276bb472166383c40d82666dc0dbd044603bd (diff) |
Rename, remove unused, non-functional
Diffstat (limited to 'jdisc_core')
-rw-r--r-- | jdisc_core/src/test/java/com/yahoo/jdisc/handler/AbstractRequestHandlerTestCase.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/handler/AbstractRequestHandlerTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/handler/AbstractRequestHandlerTestCase.java index a80f3725b51..e530510b6da 100644 --- a/jdisc_core/src/test/java/com/yahoo/jdisc/handler/AbstractRequestHandlerTestCase.java +++ b/jdisc_core/src/test/java/com/yahoo/jdisc/handler/AbstractRequestHandlerTestCase.java @@ -10,9 +10,9 @@ import org.junit.Test; import java.net.URI; import java.nio.ByteBuffer; -import java.nio.charset.Charset; import java.util.concurrent.TimeUnit; +import static java.nio.charset.StandardCharsets.UTF_8; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; @@ -25,8 +25,7 @@ import static org.junit.Assert.assertTrue; */ public class AbstractRequestHandlerTestCase { - private static final Charset UTF8 = Charset.forName("utf-8"); - private static int NUM_REQUESTS = 666; + private static final int NUM_REQUESTS = 666; @Test public void requireThatHandleTimeoutIsImplemented() throws Exception { @@ -56,7 +55,7 @@ public class AbstractRequestHandlerTestCase { ByteBuffer buf = responseHandler.content.read(); assertNotNull(buf); - assertEquals("Hello World!", new String(buf.array(), buf.arrayOffset() + buf.position(), buf.remaining(), UTF8)); + assertEquals("Hello World!", new String(buf.array(), buf.arrayOffset() + buf.position(), buf.remaining(), UTF_8)); assertNull(responseHandler.content.read()); } assertTrue(driver.close()); |