Branch #Dawit (this was a test)

* lampadine funzionano
* Aggiunto classe Sensor e testSensor. NON SO se giusto
* Aggiunto jar per Z-Wave
* Removed .gradle .idea
This commit was merged in pull request #1.
This commit is contained in:
Dawit Gulino 20013954
2018-06-01 21:36:47 +02:00
committed by Giacomo Bertolazzi 20015159
parent fc135908f5
commit 9d995e093e
20 changed files with 352 additions and 1159 deletions

View File

@@ -0,0 +1,23 @@
import device.Hue;
import device.Sensor;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
public class TestSensor {
Sensor sensor = new Sensor();
Hue hue = new Hue();
@Test
public void firstTestSensor() {
assertTrue(sensor.IsLowLuminescence(50));
}
@Test
public void secondTestSensor() {
if(sensor.IsLowLuminescence(50)) {
hue.turnOn();
hue.setBrightness(200);
}
}
}