File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
hexagonal/src/test/java/com/iluwatar/hexagonal/domain Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 4949public class LotteryTest {
5050
5151 private final LotterySystem lotterySystem = new LotterySystemImpl ();
52- private final LotteryTicketRepository repository = new LotteryTicketInMemoryRepository ();
5352 private final WireTransfers wireTransfers = new WireTransfersImpl ();
5453
5554 @ Before
5655 public void clear () {
57- repository .deleteAll ();
56+ // add funds to the test player's bank account
57+ wireTransfers .setFunds ("123-12312" , 100 );
5858 }
5959
6060 @ Test
6161 public void testLottery () {
62-
63- // setup bank account with funds
64- wireTransfers .setFunds ("123-12312" , 100 );
65-
6662 // admin resets the lottery
6763 lotterySystem .resetLottery ();
6864 assertEquals (lotterySystem .getAllSubmittedTickets ().size (), 0 );
You can’t perform that action at this time.
0 commit comments