-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathWalletTest.java
More file actions
39 lines (30 loc) · 883 Bytes
/
WalletTest.java
File metadata and controls
39 lines (30 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package io.bytom.integration;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import io.bytom.api.Wallet;
import io.bytom.exception.BytomException;
import io.bytom.http.Client;
public class WalletTest {
private static Client client;
@Test
public void run() {
try {
testBackupWallet();
//testRestoreWallet();
}
catch (Exception e) {
e.printStackTrace();
}
}
public void testBackupWallet() throws BytomException {
client = TestUtils.generateClient();
Wallet w = Wallet.backupWallet(client);
Wallet.restoreWallet(client, w.accountImage, w.assetImage, w.keyImages);
assertNotNull(w.accountImage);
}
public void testRestoreWallet() throws BytomException {
/*client = TestUtils.generateClient();
Wallet w = Wallet.backupWallet(client);
Wallet.restoreWallet(client, w.accountImage, w.assetImage, w.keyImages);*/
}
}