Package com.visionarysoftwaresolutions.hfdpch4.tddstyle.nypizza

Source Code of com.visionarysoftwaresolutions.hfdpch4.tddstyle.nypizza.PizzaTestDrive

package com.visionarysoftwaresolutions.hfdpch4.tddstyle.nypizza;

import com.visionarysoftwaresolutions.hfdpch4.tddstyle.chicagopizza.ChicagoPizzaStore;
import com.visionarysoftwaresolutions.hfdpch4.tddstyle.pizzas.Pizza;
import com.visionarysoftwaresolutions.hfdpch4.tddstyle.pizzas.PizzaStore;

public class PizzaTestDrive {
  public static void main(String[] args) {
    PizzaStore nyStore = new NYPizzaStore();
    PizzaStore chicagoStore = new ChicagoPizzaStore();
    Pizza pizza = nyStore.orderPizza("cheese");
    System.out.println("Ethan ordered a " + pizza + "\n");
    pizza = chicagoStore.orderPizza("cheese");
    System.out.println("Joel ordered a " + pizza + "\n");

    pizza = nyStore.orderPizza("clam");
    System.out.println("Ethan ordered a " + pizza + "\n");
    pizza = chicagoStore.orderPizza("clam");
    System.out.println("Joel ordered a " + pizza + "\n");

    pizza = nyStore.orderPizza("pepperoni");
    System.out.println("Ethan ordered a " + pizza + "\n");
    pizza = chicagoStore.orderPizza("pepperoni");
    System.out.println("Joel ordered a " + pizza + "\n");

    pizza = nyStore.orderPizza("veggie");
    System.out.println("Ethan ordered a " + pizza + "\n");
    pizza = chicagoStore.orderPizza("veggie");
    System.out.println("Joel ordered a " + pizza + "\n");
  }
}
TOP

Related Classes of com.visionarysoftwaresolutions.hfdpch4.tddstyle.nypizza.PizzaTestDrive

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.