Skip to content

Commit

Permalink
CordaRPCJavaClientTest refactoring to align with enterprise repo. (co…
Browse files Browse the repository at this point in the history
…rda#2299)

* Align CordaRPCJavaClientTest with Kotlin version of the test ((byte)0 instead of "1".getBytes())
* Refactoring to align with enterprise repo (exceptions).
  • Loading branch information
szymonsztuka authored Dec 28, 2017
1 parent 5ce873a commit cb0b311
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private void login(String username, String password) {
}

@Before
public void setUp() throws ExecutionException, InterruptedException {
public void setUp() throws Exception {
node = startNode(ALICE_NAME, 1, singletonList(rpcUser));
client = new CordaRPCClient(requireNonNull(node.getInternals().getConfiguration().getRpcAddress()));
}
Expand All @@ -71,11 +71,11 @@ public void testLogin() {
}

@Test
public void testCashBalances() throws NoSuchFieldException, ExecutionException, InterruptedException {
public void testCashBalances() throws ExecutionException, InterruptedException {
login(rpcUser.getUsername(), rpcUser.getPassword());

FlowHandle<AbstractCashFlow.Result> flowHandle = rpcProxy.startFlowDynamic(CashIssueFlow.class,
DOLLARS(123), OpaqueBytes.of("1".getBytes()),
DOLLARS(123), OpaqueBytes.of((byte)0),
CoreTestUtils.chooseIdentity(node.getInfo()));
System.out.println("Started issuing cash, waiting on result");
flowHandle.getReturnValue().get();
Expand Down

0 comments on commit cb0b311

Please sign in to comment.