@Test public void getJars() { Pattern spectatorJar = Pattern.compile("spectator-api-[^\",]+\\.jar"); String response = endpoint.get("jars").toString(); Assert.assertTrue(spectatorJar.matcher(response).find()); }
private Object getJars() { Map<String, Object> wrapper = new TreeMap<>(); wrapper.put("jars", jars.jars()); return wrapper; }
BaseServerEndpoint implements HttpEndpoint { private Object getJars() { Map<String, Object> wrapper = new TreeMap<>(); wrapper.put("jars", jars.jars()); return wrapper; } }
BaseServerEndpoint implements HttpEndpoint { private Object getJars() { Map<String, Object> wrapper = new TreeMap<>(); wrapper.put("jars", jars.jars()); return wrapper; } @Inject  BaseServerEndpoint(Registry registry); }
BaseServerEndpoint implements HttpEndpoint { private Object getJars() { Map<String, Object> wrapper = new TreeMap<>(); wrapper.put("jars", jars.jars()); return wrapper; } @Inject  BaseServerEndpoint(Registry registry); @Override Object get(); @Override Object get(String path); }
BaseServerEndpoint implements HttpEndpoint { private Object getJars() { Map<String, Object> wrapper = new TreeMap<>(); wrapper.put("jars", jars.jars()); return wrapper; } @Inject  BaseServerEndpoint(Registry registry); @Override Object get(); @Override Object get(String path);  }