jsonrpc4j icon indicating copy to clipboard operation
jsonrpc4j copied to clipboard

JsonRpcServerAnnotateMethodVarArgsTest contains a lot of bad tests

Open positron96 opened this issue 6 years ago • 1 comments

A lot of tests in JsonRpcServerAnnotateMethodVarArgsTest use internal byteArrayOutputStream to store result, but it never gets flushed between different calls. So every test that makes several RPC requests effectively validates only first requests, all the others get their output discarded (and result of the first request is checked against expected results of following requests)

positron96 avatar Feb 26 '19 08:02 positron96

can you submit a patch to fix?

briandilley avatar Apr 12 '19 14:04 briandilley