From b9c5dcb91d0aff8be1dea044919e38406af5178d Mon Sep 17 00:00:00 2001 From: Alex Laird Date: Tue, 28 Sep 2021 13:35:33 -0700 Subject: [PATCH] Map must be initialized with params for inner class. --- .../java/com/github/alexdlaird/ngrok/NgrokClientTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/github/alexdlaird/ngrok/NgrokClientTest.java b/src/test/java/com/github/alexdlaird/ngrok/NgrokClientTest.java index 4a24395..7461fd7 100644 --- a/src/test/java/com/github/alexdlaird/ngrok/NgrokClientTest.java +++ b/src/test/java/com/github/alexdlaird/ngrok/NgrokClientTest.java @@ -409,18 +409,18 @@ public void testTunnelDefinitions() { // GIVEN final String subdomain = createUniqueSubdomain(); - final Map httpTunnelConfig = new HashMap<>() {{ + final Map httpTunnelConfig = new HashMap() {{ put("proto", "http"); put("addr", "8000"); put("subdomain", subdomain); put("inspect", Boolean.FALSE); put("bind_tls", Boolean.TRUE); }}; - final Map tcpTunnelConfig = new HashMap<>() {{ + final Map tcpTunnelConfig = new HashMap() {{ put("proto", "tcp"); put("addr", "22"); }}; - final Map tunnelsConfig = new HashMap<>() {{ + final Map tunnelsConfig = new HashMap() {{ put("http-tunnel", httpTunnelConfig); put("tcp-tunnel", tcpTunnelConfig); }};