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