@Test public void testBindState() { final long nonce = 3; final Aer balance = Aer.ONE; final AbstractAccount account = spy(AbstractAccount.class); final AccountState state = AccountState.newBuilder() .address(AccountAddress.EMPTY) .nonce(nonce) .balance(balance) .build(); account.bindState(state); assertEquals(nonce, account.getRecentlyUsedNonce()); }
@Override public void bindState(final AccountState state) { setNonce(state.getNonce()); }
AbstractAccount implements Account { @Override public void bindState(final AccountState state) { setNonce(state.getNonce()); } }
AbstractAccount implements Account { @Override public void bindState(final AccountState state) { setNonce(state.getNonce()); }  }
AbstractAccount implements Account { @Override public void bindState(final AccountState state) { setNonce(state.getNonce()); }  @Override void bindState(final AccountState state); @Override void setNonce(final long nonce); @Override long getRecentlyUsedNonce(); @Override long incrementAndGetNonce(); }
AbstractAccount implements Account { @Override public void bindState(final AccountState state) { setNonce(state.getNonce()); }  @Override void bindState(final AccountState state); @Override void setNonce(final long nonce); @Override long getRecentlyUsedNonce(); @Override long incrementAndGetNonce();  }