|
1 | 1 | package com.authenteq.api;
|
2 | 2 |
|
3 |
| -import static org.junit.Assert.assertNotNull; |
4 |
| -import static org.junit.Assert.assertTrue; |
5 |
| - |
6 |
| -import java.io.IOException; |
7 |
| -import java.security.KeyPair; |
8 |
| -import java.security.spec.InvalidKeySpecException; |
9 |
| - |
10 | 3 | import com.authenteq.AbstractTest;
|
11 |
| -import com.authenteq.constants.Operations; |
12 |
| -import org.junit.BeforeClass; |
13 |
| -import org.junit.Test; |
14 |
| -import com.authenteq.builders.BigchainDbConfigBuilder; |
15 | 4 | import com.authenteq.builders.BigchainDbTransactionBuilder;
|
16 |
| -import com.authenteq.model.Transaction; |
17 |
| - |
18 |
| -import com.authenteq.util.JsonUtils; |
| 5 | +import com.authenteq.constants.Operations; |
19 | 6 | import com.authenteq.model.Account;
|
20 | 7 | import com.authenteq.model.DataModel;
|
21 | 8 | import com.authenteq.model.GenericCallback;
|
| 9 | +import com.authenteq.model.Transaction; |
| 10 | +import com.authenteq.util.JsonUtils; |
22 | 11 | import net.i2p.crypto.eddsa.EdDSAPrivateKey;
|
23 | 12 | import net.i2p.crypto.eddsa.EdDSAPublicKey;
|
24 |
| -import net.i2p.crypto.eddsa.Utils; |
25 | 13 | import okhttp3.Response;
|
| 14 | +import org.junit.Test; |
| 15 | + |
| 16 | +import java.io.IOException; |
| 17 | +import java.security.KeyPair; |
| 18 | +import java.security.spec.InvalidKeySpecException; |
| 19 | + |
| 20 | +import static org.junit.Assert.assertNotNull; |
26 | 21 |
|
27 | 22 | /**
|
28 | 23 | * The Class BigchaindbTransactionTest.
|
29 | 24 | */
|
30 |
| -public class TransactionApiTest extends AbstractTest |
| 25 | +public class TransactionApiTest extends AbstractApiTest |
31 | 26 | {
|
32 | 27 |
|
33 |
| -private String publicKey = "302a300506032b657003210033c43dc2180936a2a9138a05f06c892d2fb1cfda4562cbc35373bf13cd8ed373"; |
34 |
| -private String privateKey = "302e020100300506032b6570042204206f6b0cd095f1e83fc5f08bffb79c7c8a30e77a3ab65f4bc659026b76394fcea8"; |
35 |
| - |
36 |
| -/** |
37 |
| - * Inits the. |
38 |
| - */ |
39 |
| -@BeforeClass |
40 |
| -public static void init() { |
41 |
| -BigchainDbConfigBuilder |
42 |
| -.baseUrl( get( "test.api.url", "https://test.ipdb.io" ) ) |
43 |
| -.addToken("app_id", "2bbaf3ff") |
44 |
| -.addToken("app_key", "c929b708177dcc8b9d58180082029b8d") |
45 |
| -.setup(); |
46 |
| -} |
| 28 | +private static final String publicKey = "302a300506032b657003210033c43dc2180936a2a9138a05f06c892d2fb1cfda4562cbc35373bf13cd8ed373"; |
| 29 | +private static final String privateKey = "302e020100300506032b6570042204206f6b0cd095f1e83fc5f08bffb79c7c8a30e77a3ab65f4bc659026b76394fcea8"; |
47 | 30 |
|
48 | 31 | /**
|
49 | 32 | * Test post transaction using builder.
|
|
0 commit comments