@Test public void testHelp() { String mess = "help"; String expResult = "Freedomotic CHAT help:"; String result = msg.manageMessage(mess); assertTrue(result.startsWith(expResult)); }
private String help(String[] tokenMess) { return "Freedomotic CHAT help:\n" + "- enter a command name to be executed\n" + "- enter a command with '*' in it to get a list of suggestions\n" + "- enter 'LIST [commands|objects|triggers]' to retrieve related list"; }
MessageService { private String help(String[] tokenMess) { return "Freedomotic CHAT help:\n" + "- enter a command name to be executed\n" + "- enter a command with '*' in it to get a list of suggestions\n" + "- enter 'LIST [commands|objects|triggers]' to retrieve related list"; } }
MessageService { private String help(String[] tokenMess) { return "Freedomotic CHAT help:\n" + "- enter a command name to be executed\n" + "- enter a command with '*' in it to get a list of suggestions\n" + "- enter 'LIST [commands|objects|triggers]' to retrieve related list"; } @Inject  MessageService(NlpCommand nlpCommands, API api); }
MessageService { private String help(String[] tokenMess) { return "Freedomotic CHAT help:\n" + "- enter a command name to be executed\n" + "- enter a command with '*' in it to get a list of suggestions\n" + "- enter 'LIST [commands|objects|triggers]' to retrieve related list"; } @Inject  MessageService(NlpCommand nlpCommands, API api); String manageMessage(String mess); }
MessageService { private String help(String[] tokenMess) { return "Freedomotic CHAT help:\n" + "- enter a command name to be executed\n" + "- enter a command with '*' in it to get a list of suggestions\n" + "- enter 'LIST [commands|objects|triggers]' to retrieve related list"; } @Inject  MessageService(NlpCommand nlpCommands, API api); String manageMessage(String mess); static String IF; static String THEN; static String WHEN; static String HELP; static String LIST; static String TRIGGER; }