@Test public void testInvoke() throws Exception { Account account = new Account(); account.setaAmount(1000); account.setbAmount(800); account.setDate(new Date()); account.setTimestamp(System.currentTimeMillis()); account.setRequestId("xxx" + System.currentTimeMillis()); System.out.println(repo.moveFor(account)); }
public ResultSet invoke(String from, String to, int amount) { InvokeProposal proposal = ProposalBuilder.invoke(); proposal.clientUser("user1"); return accountRepo.invoke(proposal, "move", from, to, amount); }
AccountService { public ResultSet invoke(String from, String to, int amount) { InvokeProposal proposal = ProposalBuilder.invoke(); proposal.clientUser("user1"); return accountRepo.invoke(proposal, "move", from, to, amount); } }
AccountService { public ResultSet invoke(String from, String to, int amount) { InvokeProposal proposal = ProposalBuilder.invoke(); proposal.clientUser("user1"); return accountRepo.invoke(proposal, "move", from, to, amount); }  }
AccountService { public ResultSet invoke(String from, String to, int amount) { InvokeProposal proposal = ProposalBuilder.invoke(); proposal.clientUser("user1"); return accountRepo.invoke(proposal, "move", from, to, amount); }  void install(); ResultSet instantiate(Account account); ResultSet upgrade(); ResultSet invoke(String from, String to, int amount); ResultSet query(String account); }
AccountService { public ResultSet invoke(String from, String to, int amount) { InvokeProposal proposal = ProposalBuilder.invoke(); proposal.clientUser("user1"); return accountRepo.invoke(proposal, "move", from, to, amount); }  void install(); ResultSet instantiate(Account account); ResultSet upgrade(); ResultSet invoke(String from, String to, int amount); ResultSet query(String account);  }