test fix, remove custom policy support

This commit is contained in:
Craig Raw 2020-05-23 16:54:37 +02:00
parent 6f2a0cd3c3
commit 3a8581da13
3 changed files with 6 additions and 6 deletions

2
drongo

@ -1 +1 @@
Subproject commit 785040898babf4b198985531f61af7ce48178b17 Subproject commit de70f44535916f93d18f66190a217d93f94e1240

View file

@ -33,7 +33,7 @@
<FXCollections fx:factory="observableArrayList"> <FXCollections fx:factory="observableArrayList">
<PolicyType fx:constant="SINGLE" /> <PolicyType fx:constant="SINGLE" />
<PolicyType fx:constant="MULTI" /> <PolicyType fx:constant="MULTI" />
<PolicyType fx:constant="CUSTOM" /> <!-- <PolicyType fx:constant="CUSTOM" /> -->
</FXCollections> </FXCollections>
</items> </items>
</ComboBox> </ComboBox>

View file

@ -17,14 +17,14 @@ public class StorageTest extends IoTest {
@Test @Test
public void loadWallet() throws IOException, MnemonicException, StorageException { public void loadWallet() throws IOException, MnemonicException, StorageException {
Storage storage = new Storage(getFile("sparrow-single-wallet")); Storage storage = new Storage(getFile("sparrow-single-wallet"));
Wallet wallet = storage.loadWallet("pass"); Wallet wallet = storage.loadWallet("pass").wallet;
Assert.assertTrue(wallet.isValid()); Assert.assertTrue(wallet.isValid());
} }
@Test @Test
public void loadSeedWallet() throws IOException, MnemonicException, StorageException { public void loadSeedWallet() throws IOException, MnemonicException, StorageException {
Storage storage = new Storage(getFile("sparrow-single-seed-wallet")); Storage storage = new Storage(getFile("sparrow-single-seed-wallet"));
Wallet wallet = storage.loadWallet("pass"); Wallet wallet = storage.loadWallet("pass").wallet;
Assert.assertTrue(wallet.isValid()); Assert.assertTrue(wallet.isValid());
Assert.assertEquals("testd2", wallet.getName()); Assert.assertEquals("testd2", wallet.getName());
@ -42,7 +42,7 @@ public class StorageTest extends IoTest {
@Test @Test
public void saveWallet() throws IOException, MnemonicException, StorageException { public void saveWallet() throws IOException, MnemonicException, StorageException {
Storage storage = new Storage(getFile("sparrow-single-wallet")); Storage storage = new Storage(getFile("sparrow-single-wallet"));
Wallet wallet = storage.loadWallet("pass"); Wallet wallet = storage.loadWallet("pass").wallet;
Assert.assertTrue(wallet.isValid()); Assert.assertTrue(wallet.isValid());
File tempWallet = File.createTempFile("sparrow", "tmp"); File tempWallet = File.createTempFile("sparrow", "tmp");
@ -54,7 +54,7 @@ public class StorageTest extends IoTest {
tempStorage.storeWallet(wallet); tempStorage.storeWallet(wallet);
Storage temp2Storage = new Storage(tempWallet); Storage temp2Storage = new Storage(tempWallet);
wallet = temp2Storage.loadWallet("pass"); wallet = temp2Storage.loadWallet("pass").wallet;
Assert.assertTrue(wallet.isValid()); Assert.assertTrue(wallet.isValid());
} }
} }