use of act.handler.builtin.Echo in project actframework by actframework.
the class RouteTableRouterBuilderTest method payloadContainsBlank.
@Test
public void payloadContainsBlank() {
addRouteMap("GET /magic_words echo: Hello world!");
RequestHandler h = router.getInvoker(GET, "/magic_words", ctx);
yes(h instanceof Echo);
eq("Hello world!", ((Echo) h).readContent());
}
Aggregations