@Test public void sendChatMessageTest() { service.sendChatMessage("User", "Hello"); verify(service.consoleComponent).triggerEvent(any()); }
public void sendChatMessage(String sender, String msg) { consoleComponent.triggerEvent(new ChatMessageEvent(sender, msg)); }
ClientConsoleService extends ConsoleService { public void sendChatMessage(String sender, String msg) { consoleComponent.triggerEvent(new ChatMessageEvent(sender, msg)); } }
ClientConsoleService extends ConsoleService { public void sendChatMessage(String sender, String msg) { consoleComponent.triggerEvent(new ChatMessageEvent(sender, msg)); } ClientConsoleService(SceneHolder holder, Context context); }
ClientConsoleService extends ConsoleService { public void sendChatMessage(String sender, String msg) { consoleComponent.triggerEvent(new ChatMessageEvent(sender, msg)); } ClientConsoleService(SceneHolder holder, Context context); void sendChatMessage(String sender, String msg); }
ClientConsoleService extends ConsoleService { public void sendChatMessage(String sender, String msg) { consoleComponent.triggerEvent(new ChatMessageEvent(sender, msg)); } ClientConsoleService(SceneHolder holder, Context context); void sendChatMessage(String sender, String msg);  }