Add tests for:
help
help <method-name> -- this will fail because help is not implemented to take a method-name parameter)
invalid-command
echo text extra-argument -- should return an error since there is only one argument
Note that 3 of the above tests will get failure results from the sever, but the test should pass and have condition that verify the server correctly returned failure results with the message and code.
You can use the echoMethod() test in ApplicationTest.java as a template.
Testing for stop is more complicated and is not needed to complete this issue:
stop -- This might need to be the last test or might need to be in a separate class that starts a server just for stopping.
Add tests for:
helphelp <method-name>-- this will fail becausehelpis not implemented to take a method-name parameter)invalid-commandecho text extra-argument-- should return an error since there is only one argumentNote that 3 of the above tests will get failure results from the sever, but the test should pass and have condition that verify the server correctly returned failure results with the message and code.
You can use the
echoMethod()test in ApplicationTest.java as a template.Testing for
stopis more complicated and is not needed to complete this issue:stop-- This might need to be the last test or might need to be in a separate class that starts a server just for stopping.