@Test public void define_controller() throws Exception { WebService.Controller controller = tester.controller("api/action_plans"); assertThat(controller).isNotNull(); assertThat(controller.description()).isNotEmpty(); assertThat(controller.actions()).hasSize(6); }
@Test public void define_controller() throws Exception { assertThat(controller).isNotNull(); assertThat(controller.description()).isNotEmpty(); assertThat(controller.since()).isEqualTo("4.2"); assertThat(controller.actions()).hasSize(1); }
@Test public void define_controller() throws Exception { WebService.Controller controller = tester.controller("api/permissions"); assertThat(controller).isNotNull(); assertThat(controller.description()).isNotEmpty(); assertThat(controller.since()).isEqualTo("3.7"); assertThat(controller.actions()).hasSize(2); }
@Test public void define() { WebService.Controller controller = ws.controller("api/computation"); assertThat(controller).isNotNull(); assertThat(controller.description()).isNotEmpty(); assertThat(controller.actions()).hasSize(3); }