Example #1
0
 @Test(expected = IllegalStateException.class)
 public void addFollowingAccountsTwiceShouldFail() {
   ImmutableList<DeterministicKey> followingKeys = ImmutableList.of(watchingAccountKey);
   group.addFollowingAccountKeys(followingKeys);
   group.addFollowingAccountKeys(followingKeys);
 }
Example #2
0
 @Test(expected = IllegalStateException.class)
 public void addFollowingAccountsForUsedKeychainShouldFail() {
   group.freshAddress(KeyChain.KeyPurpose.RECEIVE_FUNDS);
   group.addFollowingAccountKeys(ImmutableList.of(watchingAccountKey));
 }
Example #3
0
 @Test
 public void addFollowingAccounts() throws Exception {
   assertFalse(group.isMarried());
   group.addFollowingAccountKeys(ImmutableList.of(watchingAccountKey));
   assertTrue(group.isMarried());
 }