@Test public void organiseCode() throws Exception { TestResponse response = createClient(Main::organiseCode).path("/catalog-context-path").get(); assertEquals(200, response.status().code()); assertEquals("1, 2, 3, 4, 5", response.asString().get()); response = createClient(Main::organiseCode).path("/catalog-context-path/aaa").get(); assertEquals(200, response.status().code()); assertEquals("Item: aaa", response.asString().get()); }
public void organiseCode() { Routing routing = Routing.builder() .register("/catalog-context-path", new Catalog()) .build(); startServer(routing); }
Main { public void organiseCode() { Routing routing = Routing.builder() .register("/catalog-context-path", new Catalog()) .build(); startServer(routing); } }
Main { public void organiseCode() { Routing routing = Routing.builder() .register("/catalog-context-path", new Catalog()) .build(); startServer(routing); }  }
Main { public void organiseCode() { Routing routing = Routing.builder() .register("/catalog-context-path", new Catalog()) .build(); startServer(routing); }  void firstRouting(); void routingAsFilter(); void parametersAndHeaders(); void advancedRouting(); void organiseCode(); void readContentEntity(); void mediaReader(); void supports(); void errorHandling(); void help(); void h(); static void main(String[] args); }
Main { public void organiseCode() { Routing routing = Routing.builder() .register("/catalog-context-path", new Catalog()) .build(); startServer(routing); }  void firstRouting(); void routingAsFilter(); void parametersAndHeaders(); void advancedRouting(); void organiseCode(); void readContentEntity(); void mediaReader(); void supports(); void errorHandling(); void help(); void h(); static void main(String[] args);  }