001package headfirst.factory.pizzas;
002
003public class PizzaTestDrive {
004
005        public static void main(String[] args) {
006                SimplePizzaFactory factory = new SimplePizzaFactory();
007                PizzaStore store = new PizzaStore(factory);
008
009                Pizza pizza = store.orderPizza("cheese");
010                System.out.println("We ordered a " + pizza.getName() + "\n");
011
012                pizza = store.orderPizza("veggie");
013                System.out.println("We ordered a " + pizza.getName() + "\n");
014        }
015}