@Test public void lightsAreSequentiallyNumberedStartingWithZero() { List<Light> lights = model.lights(); assertEquals("Wrong light number", 0, lights.get(0).number()); assertEquals("Wrong light number", 1, lights.get(1).number()); assertEquals("Wrong light number", 2, lights.get(2).number()); }
public List<Light> lights() { return lights; }
GaugeButtonModel extends DefaultButtonModel { public List<Light> lights() { return lights; } }
GaugeButtonModel extends DefaultButtonModel { public List<Light> lights() { return lights; } GaugeButtonModel(int numberOfLights); }
GaugeButtonModel extends DefaultButtonModel { public List<Light> lights() { return lights; } GaugeButtonModel(int numberOfLights); List<Light> lights(); void turnNextLightOn(); boolean areAllLightsOn(); void turnAllLightsOff(); }
GaugeButtonModel extends DefaultButtonModel { public List<Light> lights() { return lights; } GaugeButtonModel(int numberOfLights); List<Light> lights(); void turnNextLightOn(); boolean areAllLightsOn(); void turnAllLightsOff();  }