From cb0b31107700795fbcad870b98a44bc383c660f5 Mon Sep 17 00:00:00 2001 From: szymonsztuka Date: Thu, 28 Dec 2017 14:56:27 +0100 Subject: [PATCH] CordaRPCJavaClientTest refactoring to align with enterprise repo. (#2299) * Align CordaRPCJavaClientTest with Kotlin version of the test ((byte)0 instead of "1".getBytes()) * Refactoring to align with enterprise repo (exceptions). --- .../java/net/corda/client/rpc/CordaRPCJavaClientTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/rpc/src/integration-test/java/net/corda/client/rpc/CordaRPCJavaClientTest.java b/client/rpc/src/integration-test/java/net/corda/client/rpc/CordaRPCJavaClientTest.java index a3796af894..ac6272f579 100644 --- a/client/rpc/src/integration-test/java/net/corda/client/rpc/CordaRPCJavaClientTest.java +++ b/client/rpc/src/integration-test/java/net/corda/client/rpc/CordaRPCJavaClientTest.java @@ -55,7 +55,7 @@ public class CordaRPCJavaClientTest extends NodeBasedTest { } @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())); } @@ -71,11 +71,11 @@ public class CordaRPCJavaClientTest extends NodeBasedTest { } @Test - public void testCashBalances() throws NoSuchFieldException, ExecutionException, InterruptedException { + public void testCashBalances() throws ExecutionException, InterruptedException { login(rpcUser.getUsername(), rpcUser.getPassword()); FlowHandle 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();