|
|
|
@ -70,7 +70,7 @@ public class Web3Sha3Test { |
|
|
|
|
new JsonRpcRequest("2", "web3_sha3", new Object[] {"0x68656c6c6f20776f726c6"})); |
|
|
|
|
|
|
|
|
|
final JsonRpcResponse expected = |
|
|
|
|
new JsonRpcErrorResponse(request.getRequest().getId(), RpcErrorType.INVALID_PARAMS); |
|
|
|
|
new JsonRpcErrorResponse(request.getRequest().getId(), RpcErrorType.INVALID_DATA_PARAMS); |
|
|
|
|
final JsonRpcResponse actual = method.response(request); |
|
|
|
|
|
|
|
|
|
assertThat(actual).usingRecursiveComparison().isEqualTo(expected); |
|
|
|
@ -83,7 +83,7 @@ public class Web3Sha3Test { |
|
|
|
|
new JsonRpcRequest("2", "web3_sha3", new Object[] {"0x68656c6c6fThisIsNotHex"})); |
|
|
|
|
|
|
|
|
|
final JsonRpcResponse expected = |
|
|
|
|
new JsonRpcErrorResponse(request.getRequest().getId(), RpcErrorType.INVALID_PARAMS); |
|
|
|
|
new JsonRpcErrorResponse(request.getRequest().getId(), RpcErrorType.INVALID_DATA_PARAMS); |
|
|
|
|
final JsonRpcResponse actual = method.response(request); |
|
|
|
|
|
|
|
|
|
assertThat(actual).usingRecursiveComparison().isEqualTo(expected); |
|
|
|
@ -96,7 +96,7 @@ public class Web3Sha3Test { |
|
|
|
|
new JsonRpcRequest("2", "web3_sha3", new Object[] {"68656c6c6f20776f726c64"})); |
|
|
|
|
|
|
|
|
|
final JsonRpcResponse expected = |
|
|
|
|
new JsonRpcErrorResponse(request.getRequest().getId(), RpcErrorType.INVALID_PARAMS); |
|
|
|
|
new JsonRpcErrorResponse(request.getRequest().getId(), RpcErrorType.INVALID_DATA_PARAMS); |
|
|
|
|
final JsonRpcResponse actual = method.response(request); |
|
|
|
|
|
|
|
|
|
assertThat(actual).usingRecursiveComparison().isEqualTo(expected); |
|
|
|
@ -109,7 +109,7 @@ public class Web3Sha3Test { |
|
|
|
|
new JsonRpcRequest("2", "web3_sha3", new Object[] {"68656c6c6fThisIsNotHex"})); |
|
|
|
|
|
|
|
|
|
final JsonRpcResponse expected = |
|
|
|
|
new JsonRpcErrorResponse(request.getRequest().getId(), RpcErrorType.INVALID_PARAMS); |
|
|
|
|
new JsonRpcErrorResponse(request.getRequest().getId(), RpcErrorType.INVALID_DATA_PARAMS); |
|
|
|
|
final JsonRpcResponse actual = method.response(request); |
|
|
|
|
|
|
|
|
|
assertThat(actual).usingRecursiveComparison().isEqualTo(expected); |
|
|
|
|