@Test public void get() { List<JarsEndpoint.JarInfo> jars = endpoint.jars(); Assert.assertEquals(jars, endpoint.get()); Optional<JarsEndpoint.JarInfo> spectator = jars.stream() .filter(j -> j.getName().contains("spectator-api-")) .findFirst(); Assert.assertTrue(spectator.isPresent()); JarsEndpoint.JarInfo jar = spectator.get(); String name = "spectator-api-" + jar.getImplementationVersion() + ".jar"; Assert.assertEquals(name, new File(jar.getName()).getName()); }
@Override public Object get() { return jars; }
JarsEndpoint implements HttpEndpoint { @Override public Object get() { return jars; } }
JarsEndpoint implements HttpEndpoint { @Override public Object get() { return jars; } JarsEndpoint(ClassLoader loader);  JarsEndpoint(); }
JarsEndpoint implements HttpEndpoint { @Override public Object get() { return jars; } JarsEndpoint(ClassLoader loader);  JarsEndpoint(); List<JarInfo> jars(); @Override Object get(); @Override Object get(String path); }
JarsEndpoint implements HttpEndpoint { @Override public Object get() { return jars; } JarsEndpoint(ClassLoader loader);  JarsEndpoint(); List<JarInfo> jars(); @Override Object get(); @Override Object get(String path);  }