001package headfirst.state.gumballstatewinner;
002
003public class GumballMachineTestDrive {
004
005        public static void main(String[] args) {
006                GumballMachine gumballMachine =
007                                new GumballMachine(10);
008
009                System.out.println(gumballMachine);
010
011                gumballMachine.insertQuarter();
012                gumballMachine.turnCrank();
013                gumballMachine.insertQuarter();
014                gumballMachine.turnCrank();
015
016                System.out.println(gumballMachine);
017
018                gumballMachine.insertQuarter();
019                gumballMachine.turnCrank();
020                gumballMachine.insertQuarter();
021                gumballMachine.turnCrank();
022
023                System.out.println(gumballMachine);
024
025                gumballMachine.insertQuarter();
026                gumballMachine.turnCrank();
027                gumballMachine.insertQuarter();
028                gumballMachine.turnCrank();
029
030                System.out.println(gumballMachine);
031
032                gumballMachine.insertQuarter();
033                gumballMachine.turnCrank();
034                gumballMachine.insertQuarter();
035                gumballMachine.turnCrank();
036
037                System.out.println(gumballMachine);
038
039                gumballMachine.insertQuarter();
040                gumballMachine.turnCrank();
041                gumballMachine.insertQuarter();
042                gumballMachine.turnCrank();
043
044                System.out.println(gumballMachine);
045        }
046}