|
@@ -9,10 +9,11 @@ import java.util.Random;
|
9
|
9
|
|
10
|
10
|
|
11
|
11
|
public class SlotTest {
|
|
12
|
+ Player player = new Player("Bob", 400);
|
12
|
13
|
private int betAmount = 10;
|
13
|
|
- private SlotMachine slotmachine = new SlotMachine(betAmount);
|
|
14
|
+ private SlotMachine slotmachine = new SlotMachine(betAmount, player);
|
|
15
|
+
|
14
|
16
|
|
15
|
|
- Player player = new Player("Bob", 400);
|
16
|
17
|
|
17
|
18
|
@Test
|
18
|
19
|
public void testSlotResult1(){
|
|
@@ -122,7 +123,7 @@ public class SlotTest {
|
122
|
123
|
@Test
|
123
|
124
|
public void testSetBetAmount(){
|
124
|
125
|
int betAmount=10;
|
125
|
|
- SlotMachine slotmachine = new SlotMachine(betAmount);
|
|
126
|
+ SlotMachine slotmachine = new SlotMachine(betAmount, player);
|
126
|
127
|
|
127
|
128
|
int newBet = 40;
|
128
|
129
|
|