Created
January 4, 2017 21:43
-
-
Save izmajlowiczl/c039cc3f98a8f07a3669c7343095e783 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void listWallets() { | |
Wallet bankWallet = Wallet.create(randomUUID(), "bank"); | |
Wallet ccWallet = Wallet.create(randomUUID(), "credit card"); | |
db.execSQL(storeWalletSql(bankWallet)); | |
db.execSQL(storeWalletSql(ccWallet)); | |
assertThat(storage.list()).containsExactly(bankWallet, ccWallet); | |
} | |
private String storeWalletSql(Wallet wallet) { | |
return String.format("INSERT INTO tbl_wallet VALUES ('%s', '%s');", wallet.uuid().toString(), wallet.name()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment