summaryrefslogtreecommitdiffstats
path: root/jdisc_http_service
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2021-01-22 14:16:08 +0100
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2021-01-22 14:16:08 +0100
commit2514ba47ef38a94bc52bc356a9245f3e33073909 (patch)
tree91d52d88103d560c0519c7f38bdd05e25541f7f2 /jdisc_http_service
parent305eb7c37ecc2c88ddc4d7a3f88414d1c6325682 (diff)
Remove unused members and remove unnecessary throw declaration
Diffstat (limited to 'jdisc_http_service')
-rw-r--r--jdisc_http_service/src/test/java/com/yahoo/container/logging/JSONLogTestCase.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/jdisc_http_service/src/test/java/com/yahoo/container/logging/JSONLogTestCase.java b/jdisc_http_service/src/test/java/com/yahoo/container/logging/JSONLogTestCase.java
index f6a0d7418a0..6c8e7fab140 100644
--- a/jdisc_http_service/src/test/java/com/yahoo/container/logging/JSONLogTestCase.java
+++ b/jdisc_http_service/src/test/java/com/yahoo/container/logging/JSONLogTestCase.java
@@ -4,8 +4,6 @@ package com.yahoo.container.logging;
import com.yahoo.yolean.trace.TraceNode;
import org.junit.Test;
-import java.io.IOException;
-import java.net.URI;
import java.time.Duration;
import java.time.Instant;
@@ -18,8 +16,6 @@ import static com.yahoo.test.json.JsonTestHelper.assertJsonEquals;
public class JSONLogTestCase {
private static String ipAddress = "152.200.54.243";
- private static final String EMPTY_REFERRER = "";
- private static final String EMPTY_USERAGENT = "";
private RequestLogEntry.Builder newRequestLogEntry(final String query) {
return newRequestLogEntry(query, new Coverage(100,100,100,0));
@@ -42,12 +38,8 @@ public class JSONLogTestCase {
.peerPort(0);
}
- private static URI newQueryUri(final String query) {
- return URI.create("http://localhost?query=" + query);
- }
-
@Test
- public void test_json_log_entry() throws Exception {
+ public void test_json_log_entry() {
RequestLogEntry entry = newRequestLogEntry("test").build();
String expectedOutput =
@@ -75,7 +67,7 @@ public class JSONLogTestCase {
}
@Test
- public void test_json_of_trace() throws IOException {
+ public void test_json_of_trace() {
TraceNode root = new TraceNode("root", 7);
RequestLogEntry entry = newRequestLogEntry("test")
.traceNode(root)