We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab68129 commit 3cb8728Copy full SHA for 3cb8728
1 file changed
hexagonal/src/test/java/com/iluwatar/hexagonal/domain/LotteryTest.java
@@ -49,20 +49,16 @@
49
public class LotteryTest {
50
51
private final LotterySystem lotterySystem = new LotterySystemImpl();
52
- private final LotteryTicketRepository repository = new LotteryTicketInMemoryRepository();
53
private final WireTransfers wireTransfers = new WireTransfersImpl();
54
55
@Before
56
public void clear() {
57
- repository.deleteAll();
+ // add funds to the test player's bank account
+ wireTransfers.setFunds("123-12312", 100);
58
}
59
60
@Test
61
public void testLottery() {
62
-
63
- // setup bank account with funds
64
- wireTransfers.setFunds("123-12312", 100);
65
66
// admin resets the lottery
67
lotterySystem.resetLottery();
68
assertEquals(lotterySystem.getAllSubmittedTickets().size(), 0);
0 commit comments