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