Пример #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!");
 }
Пример #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!");
 }
Пример #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!"));
 }
Пример #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!"));
        }
Пример #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!");
        }
Пример #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!");
        }