@Test public void testMessages() { assertEquals("{\"success\": true}", testStompController.messages()); new Verifications() {{ template.convertAndSend(anyString, (StompContent) any); }}; }
@PostMapping(value="/newMessage") @ResponseBody public String messages() { template.convertAndSend("/topic/messages", new StompContent("test")); return "{\"success\": true}" ; }
StompController { @PostMapping(value="/newMessage") @ResponseBody public String messages() { template.convertAndSend("/topic/messages", new StompContent("test")); return "{\"success\": true}" ; } }
StompController { @PostMapping(value="/newMessage") @ResponseBody public String messages() { template.convertAndSend("/topic/messages", new StompContent("test")); return "{\"success\": true}" ; }  }
StompController { @PostMapping(value="/newMessage") @ResponseBody public String messages() { template.convertAndSend("/topic/messages", new StompContent("test")); return "{\"success\": true}" ; }  @MessageMapping("/connect") @SendTo("/topic/StompContent") StompContent greeting(RegistrationMessage message); @PostMapping(value="/newMessage") @ResponseBody String messages(); @GetMapping("/") String test(); }
StompController { @PostMapping(value="/newMessage") @ResponseBody public String messages() { template.convertAndSend("/topic/messages", new StompContent("test")); return "{\"success\": true}" ; }  @MessageMapping("/connect") @SendTo("/topic/StompContent") StompContent greeting(RegistrationMessage message); @PostMapping(value="/newMessage") @ResponseBody String messages(); @GetMapping("/") String test();  }