@Test void testMute() { Response r = this.target.path("mute").request().post(null); assertEquals(204, r.getStatus()); String topic = Topics.smarthomeAll(SmarthomeFunctionTopics.MUTE); Mockito.verify(this.messageHub).publish(topic, "true", true); }
@POST @Path("mute") public void mute() { String topic = Topics.smarthomeAll(SmarthomeFunctionTopics.MUTE); this.messageHub.publish(topic, "true", true); }
HomeResource { @POST @Path("mute") public void mute() { String topic = Topics.smarthomeAll(SmarthomeFunctionTopics.MUTE); this.messageHub.publish(topic, "true", true); } }
HomeResource { @POST @Path("mute") public void mute() { String topic = Topics.smarthomeAll(SmarthomeFunctionTopics.MUTE); this.messageHub.publish(topic, "true", true); }  }
HomeResource { @POST @Path("mute") public void mute() { String topic = Topics.smarthomeAll(SmarthomeFunctionTopics.MUTE); this.messageHub.publish(topic, "true", true); }  @GET @Produces(MediaType.APPLICATION_JSON) @Operation(tags = "home") SimplePluginEntity[] getPlugins(); @POST @Path("mute") void mute(); @POST @Path("unmute") void unmute(); }
HomeResource { @POST @Path("mute") public void mute() { String topic = Topics.smarthomeAll(SmarthomeFunctionTopics.MUTE); this.messageHub.publish(topic, "true", true); }  @GET @Produces(MediaType.APPLICATION_JSON) @Operation(tags = "home") SimplePluginEntity[] getPlugins(); @POST @Path("mute") void mute(); @POST @Path("unmute") void unmute(); static final String PATH; }