001package headfirst.facade.hometheater;
002
003public class HomeTheaterTestDrive {
004        public static void main(String[] args) {
005                Amplifier amp = new Amplifier("Top-O-Line Amplifier");
006                Tuner tuner = new Tuner("Top-O-Line AM/FM Tuner", amp);
007                DvdPlayer dvd = new DvdPlayer("Top-O-Line DVD Player", amp);
008                CdPlayer cd = new CdPlayer("Top-O-Line CD Player", amp);
009                Projector projector = new Projector("Top-O-Line Projector", dvd);
010                TheaterLights lights = new TheaterLights("Theater Ceiling Lights");
011                Screen screen = new Screen("Theater Screen");
012                PopcornPopper popper = new PopcornPopper("Popcorn Popper");
013
014                HomeTheaterFacade homeTheater =
015                                new HomeTheaterFacade(amp, tuner, dvd, cd,
016                                                projector, screen, lights, popper);
017
018                homeTheater.watchMovie("Raiders of the Lost Ark");
019                homeTheater.endMovie();
020        }
021}