Skip to content

Add more JSON-RPC integration tests to jrpc-echod #259

@msgilligan

Description

@msgilligan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA good issue for first-time contributors

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions