@Test public void test_wrap_rpc_in_tx() { String method = "foo"; ArrayList<Object> params = new ArrayList<Object>(); UUID transactionId = UUID.randomUUID(); TransactionWrapper wrapper = new TransactionWrapper(transactionId, method, params); ArrayList<Object> wrappedMessage = wrapper.getRPCParams(); assertEquals(wrappedMessage.get(0), transactionId); ArrayList<Object> innerRPCMessage = (ArrayList<Object>) wrappedMessage.get(1); assertEquals(innerRPCMessage.get(0), method); assertEquals(innerRPCMessage.get(1), params); }
public ArrayList<Object> getRPCParams() { return getTransactionRPCParams(this.transactionId, this.rpcMethod, this.rpcParams); }
TransactionWrapper { public ArrayList<Object> getRPCParams() { return getTransactionRPCParams(this.transactionId, this.rpcMethod, this.rpcParams); } }
TransactionWrapper { public ArrayList<Object> getRPCParams() { return getTransactionRPCParams(this.transactionId, this.rpcMethod, this.rpcParams); } TransactionWrapper(String method, ArrayList<Object> params);  TransactionWrapper(UUID txnId, String method, ArrayList<Object> params); }
TransactionWrapper { public ArrayList<Object> getRPCParams() { return getTransactionRPCParams(this.transactionId, this.rpcMethod, this.rpcParams); } TransactionWrapper(String method, ArrayList<Object> params);  TransactionWrapper(UUID txnId, String method, ArrayList<Object> params); static ArrayList<Object> getTransactionRPCParams(
            UUID transactionId, String method, ArrayList<Object> params); ArrayList<Object> getRPCParams(); UUID getTransaction(); String getInnerRPCMethod(); ArrayList<Object> getInnerRPCParams(); }
TransactionWrapper { public ArrayList<Object> getRPCParams() { return getTransactionRPCParams(this.transactionId, this.rpcMethod, this.rpcParams); } TransactionWrapper(String method, ArrayList<Object> params);  TransactionWrapper(UUID txnId, String method, ArrayList<Object> params); static ArrayList<Object> getTransactionRPCParams(
            UUID transactionId, String method, ArrayList<Object> params); ArrayList<Object> getRPCParams(); UUID getTransaction(); String getInnerRPCMethod(); ArrayList<Object> getInnerRPCParams(); static final String txWrapperTag; }