Created a blank Java project using Maven and updated .gitignore file.
Changed the version of JUnit to be 4.11.
Added class Alarm and Seneor to be added unit tests.
Added a blank class AlarmTest.
Working on TODO-working-on: will the alarm be on if I call the check method. Added test will_the_alarm_be_on_if_I_call_the_check_method() and wrote an assertion.
Removed the seed in the instantiation of Random in method Sensor.samplePressure() to make the test red or green randomly.
Working on TODO-working-on: the alarm will be off if the pressure value is normal. Renamed the test to be the_alarm_will_be_off_if_the_pressure_value_is_normal().
Finished the intention code in test the_alarm_will_be_off_if_the_pressure_value_is_normal().
Created class StubSensor.
Made the 2 pressure range fields in class Alarm be public and static.
Created method StubSensor.setPressureValueToBeChecked().
Created constructor Alarm(Sensor). Will create an interface Sensor and rename the class Sensor to be RandomSensor.
Renamed class Sensor to be RandomSensor.
Created interface Sensor and changed the type of the parameter of Alarm's constructor to be Sensor.
Added 3 TODOs: 1)Alarm's default constructor; 2)RandomSensor implements Sensor; 3) StubSensor implements Sensor.
Made class RandomSensor and StubSensor implement interface Sensor.
Added the default constructor of class Alarm.
Working on TODO-working-on: Substitute the RandomSensor with StubSensor.
Injected input Sensor in constructor Alarm(Sensor).
Implemented the default constructor of Alarm.