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