Generated a blank Java project using Maven.
Changed the version of JUnit to be 4.11.
Wrote an assertion for test the_time_of_London_clock_should_be_1_after_the_phone_clock_is_set_to_9_Beijing_time().
Added static import org.junit.Assert.assertEquals.
Created local variable londonClock.
Created class CityClock.
Created constructor of CityClock with two parameters: cityName and utcOffset.
Created method CityClock.getLocalTime().
Initialized a PhoneClock instance and invoked PhoneClock.setLocalTime() method in the test.
Created class PhoneClock.
Created constructor of class PhoneClock with a parameter utcOffset.
Created method PhoneClock.setLocalTime().
Invocked method PhoneClock.setHotelWorldClock() in the test.
Created method PhoneClock.setHotelWorldClock().
Added test the_time_of_clock_London_and_Moscow_should_be_1_and_5_respectively_after_the_phone_clock_is_set_to_9_Beijing_time() and wrote two assertions.
Injected a list with two CityClock instances into the PhoneClock object in the test the_time_of_clock_London_and_Moscow_should_be_1_and_5_respectively_after_the_phone_clock_is_set_to_9_Beijing_time().
Created method PhoneClock.setHotelWorldClocks().
Implemented method PhoneClock.setLocalTime().
Created a List field hotelWorldClocks in class PhoneClock.
Created method CityClock.setUtcZeroTime().