Skip to content

Commit

Permalink
Map must be initialized with params for inner class.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Sep 28, 2021
1 parent 4b43c62 commit b9c5dcb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,18 +409,18 @@ public void testTunnelDefinitions() {

// GIVEN
final String subdomain = createUniqueSubdomain();
final Map<String, Object> httpTunnelConfig = new HashMap<>() {{
final Map<String, Object> httpTunnelConfig = new HashMap<String, Object>() {{
put("proto", "http");
put("addr", "8000");
put("subdomain", subdomain);
put("inspect", Boolean.FALSE);
put("bind_tls", Boolean.TRUE);
}};
final Map<String, Object> tcpTunnelConfig = new HashMap<>() {{
final Map<String, Object> tcpTunnelConfig = new HashMap<String, Object>() {{
put("proto", "tcp");
put("addr", "22");
}};
final Map<String, Object> tunnelsConfig = new HashMap<>() {{
final Map<String, Object> tunnelsConfig = new HashMap<String, Object>() {{
put("http-tunnel", httpTunnelConfig);
put("tcp-tunnel", tcpTunnelConfig);
}};
Expand Down

0 comments on commit b9c5dcb

Please sign in to comment.