@Test public void testWalletCreation() { when(console.readPassword(contains("password"))) .thenReturn(WALLET_PASSWORD, WALLET_PASSWORD); when(console.readLine(startsWith("Please enter a destination directory "))) .thenReturn(tempDirPath); WalletCreator.main(console); verify(console).printf(contains("successfully created in")); }
public static void main(String[] args) { new WalletCreator().run(); }
WalletCreator extends WalletManager { public static void main(String[] args) { new WalletCreator().run(); } }
WalletCreator extends WalletManager { public static void main(String[] args) { new WalletCreator().run(); } WalletCreator();  WalletCreator(IODevice console); }
WalletCreator extends WalletManager { public static void main(String[] args) { new WalletCreator().run(); } WalletCreator();  WalletCreator(IODevice console); static void main(String[] args); }
WalletCreator extends WalletManager { public static void main(String[] args) { new WalletCreator().run(); } WalletCreator();  WalletCreator(IODevice console); static void main(String[] args);  }