@Test @SuppressWarnings("unchecked") public void getProperty() { Map<String, String> map = (Map<String, String>) endpoint.get("java.version"); Assert.assertEquals(1, map.size()); Assert.assertEquals(config.getString("java.version"), map.get("java.version")); }
@Override public Object get() { return toMap(config.getKeys()); }
PropsEndpoint implements HttpEndpoint { @Override public Object get() { return toMap(config.getKeys()); } }
PropsEndpoint implements HttpEndpoint { @Override public Object get() { return toMap(config.getKeys()); } @Inject  PropsEndpoint(Config config); }
PropsEndpoint implements HttpEndpoint { @Override public Object get() { return toMap(config.getKeys()); } @Inject  PropsEndpoint(Config config); @Override Object get(); @Override Object get(String path); }
PropsEndpoint implements HttpEndpoint { @Override public Object get() { return toMap(config.getKeys()); } @Inject  PropsEndpoint(Config config); @Override Object get(); @Override Object get(String path);  }