@Test void testCreate() { String address = "hx4873b94352c8c1f3b2f09aaeccea31ce9e90bd31"; TokenBalance p = new TokenBalance(); p._owner = address; RpcObject params = (RpcObject) RpcItemCreator.create(p); RpcObject expectedParams = new RpcObject.Builder() .put("_owner", new RpcValue(address)) .build(); assertEquals(params.getItem("_owner").asString(), expectedParams.getItem("_owner").asString()); assertNull(params.getItem("outerVar")); }
public static <T> RpcItem create(T item) { return toRpcItem(item); }
RpcItemCreator { public static <T> RpcItem create(T item) { return toRpcItem(item); } }
RpcItemCreator { public static <T> RpcItem create(T item) { return toRpcItem(item); }  }
RpcItemCreator { public static <T> RpcItem create(T item) { return toRpcItem(item); }  static RpcItem create(T item); }
RpcItemCreator { public static <T> RpcItem create(T item) { return toRpcItem(item); }  static RpcItem create(T item);  }