@Test public void testEndpoint() { given() .when().get("/qute/hello") .then() .statusCode(200) .body(containsString("<p>Hello world!</p>")); given() .when().get("/qute/hello?name=Lucie") .then() .statusCode(200) .body(containsString("<p>Hello Lucie!</p>")); }
@GET @Produces(MediaType.TEXT_HTML) public TemplateInstance get(@QueryParam("name") String name) { return hello.data("name", name); }
HelloResource { @GET @Produces(MediaType.TEXT_HTML) public TemplateInstance get(@QueryParam("name") String name) { return hello.data("name", name); } }
HelloResource { @GET @Produces(MediaType.TEXT_HTML) public TemplateInstance get(@QueryParam("name") String name) { return hello.data("name", name); }  }
HelloResource { @GET @Produces(MediaType.TEXT_HTML) public TemplateInstance get(@QueryParam("name") String name) { return hello.data("name", name); }  @GET @Produces(MediaType.TEXT_HTML) TemplateInstance get(@QueryParam("name") String name); }
HelloResource { @GET @Produces(MediaType.TEXT_HTML) public TemplateInstance get(@QueryParam("name") String name) { return hello.data("name", name); }  @GET @Produces(MediaType.TEXT_HTML) TemplateInstance get(@QueryParam("name") String name);  }