@Test public void allLightsAreOffByDefault() { List<Light> lights = model.lights(); assertFalse("Light should be off", lights.get(0).isOn()); assertFalse("Light should be off", lights.get(1).isOn()); assertFalse("Light should be off", lights.get(2).isOn()); }
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();  }