diff --git a/src/main/java/io/ipfs/api/AddArgs.java b/src/main/java/io/ipfs/api/AddArgs.java index 7c2a4d0..747eb57 100644 --- a/src/main/java/io/ipfs/api/AddArgs.java +++ b/src/main/java/io/ipfs/api/AddArgs.java @@ -11,7 +11,7 @@ .setCidVersion(1) .build(); */ -final class AddArgs { +public final class AddArgs { private final Map args = new HashMap<>(); diff --git a/src/test/java/io/ipfs/api/APITest.java b/src/test/java/io/ipfs/api/APITest.java index 3b0a8f2..11ef6ec 100644 --- a/src/test/java/io/ipfs/api/APITest.java +++ b/src/test/java/io/ipfs/api/APITest.java @@ -20,7 +20,9 @@ @SuppressWarnings({"rawtypes", "unused"}) public class APITest { - private final IPFS ipfs = new IPFS(new MultiAddress("/ip4/127.0.0.1/tcp/5001")); + private final MultiAddress ipfsAddress = new MultiAddress("/ip4/127.0.0.1/tcp/5001"); + private final IPFS ipfs = new IPFS(ipfsAddress.getHost(), ipfsAddress.getPort(), "/api/v0/", true, false); + private final Random r = new Random(33550336); // perfect @Test