BAEL-1461: Combined modules and refactored

This commit is contained in:
Thoughtscript
2018-05-02 20:42:11 +01:00
parent 594b6dda12
commit 2636f0cc7c
44 changed files with 234 additions and 318 deletions

View File

@@ -0,0 +1,33 @@
package com.baeldung.web3j.services;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.concurrent.CompletableFuture;
public class EthereumContractUnitTest {
private Web3Service web3Service;
@Before
public void setup() {
web3Service = new Web3Service();
}
@Test
public void testContract() {
CompletableFuture<String> result = web3Service.fromScratchContractExample();
assert (result instanceof CompletableFuture);
}
@Test
public void sendTx() {
CompletableFuture<String> result = web3Service.sendTx();
assert (result instanceof CompletableFuture);
}
@After
public void cleanup() {
}
}