From a3295abf503c31c4fb5e8b7c5b04fc27e83da7ea Mon Sep 17 00:00:00 2001 From: szymonsztuka Date: Thu, 28 Dec 2017 10:22:06 +0000 Subject: [PATCH] Fix CordaRPCJavaClientTest.java in database integration test mode (#256) * Invoke setUp from base integration class in CordaRPCJavaClientTest * Align CordaRPCJavaClientTest with Kotlin version of the test --- .../net/corda/client/rpc/CordaRPCJavaClientTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 849e9f3d37..b0bce0c0b4 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 @@ -40,8 +40,7 @@ public class CordaRPCJavaClientTest extends NodeBasedTest { } @ClassRule - public static IntegrationTestSchemas databaseSchemas = new IntegrationTestSchemas(IntegrationTestKt.toDatabaseSchemaName(ALICE_NAME), - IntegrationTestKt.toDatabaseSchemaName(DUMMY_NOTARY_NAME)); + public static IntegrationTestSchemas databaseSchemas = new IntegrationTestSchemas(IntegrationTestKt.toDatabaseSchemaName(ALICE_NAME)); private List perms = Arrays.asList( startFlow(CashPaymentFlow.class), @@ -63,7 +62,8 @@ public class CordaRPCJavaClientTest extends NodeBasedTest { } @Before - public void setUp() throws ExecutionException, InterruptedException { + public void setUp() throws Exception { + super.setUp(); node = startNode(ALICE_NAME, 1, singletonList(rpcUser)); client = new CordaRPCClient(requireNonNull(node.getInternals().getConfiguration().getRpcAddress())); } @@ -79,11 +79,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();