# Pastebin oEbNVdqr class iso _TestDispatchGreet is UnitTest """ Tests that the dispatcher will handle the happy path to execution """ fun name(): String => "JSONRPC/dispatcher/greet" fun apply(h: TestHelper) ? => let src = """ {"jsonrpc": "2.0", "method": "greet", "params": "bob", "id": 1} """ let request: Request = RequestParser.parse_request(src)? let handler = _HelloWorld let dispatcher = Dispatcher dispatcher.register_handler("greet", handler) let p = Promise[Response val] dispatcher.dispatch_request(request)