import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class SmokeSensorTest {

  @Test
  public void testThatIsTriggeredReturnsFalse() {
    SmokeSensor sensor = new SmokeSensor();
    boolean isTriggered = sensor.isTriggered();
    assertEquals(false, isTriggered);
  }

  @Test
  public void testThatGetLocationReturnsNull() {
    SmokeSensor sensor = new SmokeSensor();
    String location = sensor.getLocation();
    assertEquals(null, location);
  }

  @Test
  public void testThatGetSensorTypeReturnsNull() {
    SmokeSensor sensor = new SmokeSensor();
    String sensorType = sensor.getSensorType();
    assertEquals(null, sensorType);
  }

  @Test
  public void testThatGetBatteryPercentageReturnsNegativeOne() {
    SmokeSensor sensor = new SmokeSensor();
    double batteryPercentage = sensor.getBatteryPercentage();
    assertEquals(-1.0, batteryPercentage, 0.01);
  }

}

@@ -93,16 +93,63 @@
 orTest %7B
+%0A  private static final int RANDOM_SEED = 1000;
 %0A%0A  @Tes
@@ -237,24 +237,35 @@
 SmokeSensor(
+RANDOM_SEED
 );%0A    boole
@@ -436,32 +436,43 @@
 new SmokeSensor(
+RANDOM_SEED
 );%0A    String lo
@@ -637,24 +637,35 @@
 SmokeSensor(
+RANDOM_SEED
 );%0A    Strin
@@ -813,24 +813,24 @@
 tiveOne() %7B%0A
-
     SmokeSen
@@ -858,16 +858,27 @@
 eSensor(
+RANDOM_SEED
 );%0A    d

make smoke sensor take random seed in constructor - @TODO: don't like this dependency, investigate alternative method