remove completablefuture

This commit is contained in:
Loredana
2018-12-28 16:22:03 +02:00
parent 5aed1b89bb
commit 415ecc6421
3 changed files with 26 additions and 28 deletions
@@ -4,8 +4,6 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.concurrent.CompletableFuture;
public class EthereumContractUnitTest {
private Web3Service web3Service;
@@ -17,14 +15,14 @@ public class EthereumContractUnitTest {
@Test
public void testContract() {
CompletableFuture<String> result = web3Service.fromScratchContractExample();
assert (result instanceof CompletableFuture);
String result = web3Service.fromScratchContractExample();
assert (result instanceof String);
}
@Test
public void sendTx() {
CompletableFuture<String> result = web3Service.sendTx();
assert (result instanceof CompletableFuture);
String result = web3Service.sendTx();
assert (result instanceof String);
}
@After