@Test public void getEnv() { String response = endpoint.get("env").toString(); String expected = new TreeMap<>(System.getenv()).toString(); Assert.assertTrue(response.contains(expected)); }
private Object getEnv() { Map<String, Object> wrapper = new TreeMap<>(); wrapper.put("env", new TreeMap<>(System.getenv())); return wrapper; }
BaseServerEndpoint implements HttpEndpoint { private Object getEnv() { Map<String, Object> wrapper = new TreeMap<>(); wrapper.put("env", new TreeMap<>(System.getenv())); return wrapper; } }
BaseServerEndpoint implements HttpEndpoint { private Object getEnv() { Map<String, Object> wrapper = new TreeMap<>(); wrapper.put("env", new TreeMap<>(System.getenv())); return wrapper; } @Inject  BaseServerEndpoint(Registry registry); }
BaseServerEndpoint implements HttpEndpoint { private Object getEnv() { Map<String, Object> wrapper = new TreeMap<>(); wrapper.put("env", new TreeMap<>(System.getenv())); return wrapper; } @Inject  BaseServerEndpoint(Registry registry); @Override Object get(); @Override Object get(String path); }
BaseServerEndpoint implements HttpEndpoint { private Object getEnv() { Map<String, Object> wrapper = new TreeMap<>(); wrapper.put("env", new TreeMap<>(System.getenv())); return wrapper; } @Inject  BaseServerEndpoint(Registry registry); @Override Object get(); @Override Object get(String path);  }