WalletApiImpl extends AbstractApi implements WalletApi, Signer { @Override public boolean lock(final Authentication authentication) { return lock(); } WalletApiImpl(final KeyStore keyStore, final TryCountAndInterval tryCountAndInterval); @Override void bind(final AergoClient aergoClient); @Override PreparedWalletApi with(final AergoClient aergoClient); @Override boolean unlock(final Authentication authentication); @Override boolean lock(final Authentication authentication); @Override boolean lock(); @Override TransactionApi transactionApi(); @Override QueryApi queryApi(); @Override Transaction sign(final RawTransaction rawTransaction); @Override Signature signMessage(final BytesValue message); @Override Signature signMessage(final Hash hashedMessage); @Override AccountAddress getPrincipal(); @Override String toString();  }
@Test public void testLock() { final WalletApi walletApi = supplyWalletApi(); walletApi.unlock(valid); assertTrue(walletApi.lock()); assertFalse(walletApi.lock()); }