Esempio n. 1
0
 public static void testOrangePlatform()
 {
     SodaImpSingleton.setSodaImp( new OrangeSodaImp());
        MediumSoda mediumSoda = new MediumSoda();
        SuperSizeSoda superSizeSoda = new SuperSizeSoda();
        tap.test( "testing medium soda on the orange platform", mediumSoda.pourSoda() , "...glug... Citrusy Orange Soda! ...glug... Citrusy Orange Soda!");
        tap.test( "testing super size soda on the orange platform", superSizeSoda.pourSoda() , "...glug... Citrusy Orange Soda! ...glug... Citrusy Orange Soda! ...glug... Citrusy Orange Soda! ...glug... Citrusy Orange Soda! ...glug... Citrusy Orange Soda!");
 }
Esempio n. 2
0
 public static void testGrapePlatform()
 {
     SodaImpSingleton.setSodaImp( new GrapeSodaImp());
        MediumSoda mediumSoda = new MediumSoda();
        SuperSizeSoda superSizeSoda = new SuperSizeSoda();
        tap.test( "testing medium soda on the grape platform", mediumSoda.pourSoda() , "...glug... Delicious Grape Soda! ...glug... Delicious Grape Soda!");
        tap.test( "testing super size soda on the grape platform", superSizeSoda.pourSoda() , "...glug... Delicious Grape Soda! ...glug... Delicious Grape Soda! ...glug... Delicious Grape Soda! ...glug... Delicious Grape Soda! ...glug... Delicious Grape Soda!");
 }
Esempio n. 3
0
 public static void testCherryPlatform()
 {
     SodaImpSingleton.setSodaImp( new CherrySodaImp());
        MediumSoda mediumSoda = new MediumSoda();
        SuperSizeSoda superSizeSoda = new SuperSizeSoda();
        tap.test( "testing medium soda on the cherry platform", mediumSoda.pourSoda() , ("...glug... Yummy Cherry Soda! ...glug... Yummy Cherry Soda!"));
        tap.test( "testing super size soda on the cherry platform", superSizeSoda.pourSoda() , ("...glug... Yummy Cherry Soda! ...glug... Yummy Cherry Soda! ...glug... Yummy Cherry Soda! ...glug... Yummy Cherry Soda! ...glug... Yummy Cherry Soda!"));
 }
Esempio n. 4
0
        public static void testCherryPlatform()
        {
            SodaImpSingleton.setSodaImp(new CherrySodaImp());
            MediumSoda    mediumSoda    = new MediumSoda();
            SuperSizeSoda superSizeSoda = new SuperSizeSoda();

            tap.test("testing medium soda on the cherry platform", mediumSoda.pourSoda(), ("...glug... Yummy Cherry Soda! ...glug... Yummy Cherry Soda!"));
            tap.test("testing super size soda on the cherry platform", superSizeSoda.pourSoda(), ("...glug... Yummy Cherry Soda! ...glug... Yummy Cherry Soda! ...glug... Yummy Cherry Soda! ...glug... Yummy Cherry Soda! ...glug... Yummy Cherry Soda!"));
        }
Esempio n. 5
0
        public static void testOrangePlatform()
        {
            SodaImpSingleton.setSodaImp(new OrangeSodaImp());
            MediumSoda    mediumSoda    = new MediumSoda();
            SuperSizeSoda superSizeSoda = new SuperSizeSoda();

            tap.test("testing medium soda on the orange platform", mediumSoda.pourSoda(), "...glug... Citrusy Orange Soda! ...glug... Citrusy Orange Soda!");
            tap.test("testing super size soda on the orange platform", superSizeSoda.pourSoda(), "...glug... Citrusy Orange Soda! ...glug... Citrusy Orange Soda! ...glug... Citrusy Orange Soda! ...glug... Citrusy Orange Soda! ...glug... Citrusy Orange Soda!");
        }
Esempio n. 6
0
        public static void testGrapePlatform()
        {
            SodaImpSingleton.setSodaImp(new GrapeSodaImp());
            MediumSoda    mediumSoda    = new MediumSoda();
            SuperSizeSoda superSizeSoda = new SuperSizeSoda();

            tap.test("testing medium soda on the grape platform", mediumSoda.pourSoda(), "...glug... Delicious Grape Soda! ...glug... Delicious Grape Soda!");
            tap.test("testing super size soda on the grape platform", superSizeSoda.pourSoda(), "...glug... Delicious Grape Soda! ...glug... Delicious Grape Soda! ...glug... Delicious Grape Soda! ...glug... Delicious Grape Soda! ...glug... Delicious Grape Soda!");
        }