@Test public void getWithPath() { String response = endpoint.get("math").toString(); Assert.assertFalse(response.contains("com.google.inject.Injector")); Assert.assertFalse(response.contains("java.lang.String")); Assert.assertTrue(response.contains("java.math.BigInteger")); Assert.assertFalse(response.contains("java.math.BigDecimal")); }
@Override public Object get() { return getKeySet(v -> true); }
GuiceEndpoint implements HttpEndpoint { @Override public Object get() { return getKeySet(v -> true); } }
GuiceEndpoint implements HttpEndpoint { @Override public Object get() { return getKeySet(v -> true); } @Inject  GuiceEndpoint(Injector injector); }
GuiceEndpoint implements HttpEndpoint { @Override public Object get() { return getKeySet(v -> true); } @Inject  GuiceEndpoint(Injector injector); @Override Object get(); @Override Object get(String path); }
GuiceEndpoint implements HttpEndpoint { @Override public Object get() { return getKeySet(v -> true); } @Inject  GuiceEndpoint(Injector injector); @Override Object get(); @Override Object get(String path);  }