Fixed TC and initial implementation of Nexa group transmissions. issue 12

This commit is contained in:
Ziver Koc 2016-02-15 16:45:51 +01:00
parent b93c8bc124
commit cf646bb340
4 changed files with 29 additions and 11 deletions

View file

@ -20,7 +20,7 @@ public class TelstickSerialCommNexaOnOffTest {
NexaSelfLearning nexa = new NexaSelfLearning();
//nexa.setHouse(11772006);
nexa.setHouse(14160770);
nexa.setGroup(0);
nexa.setGroup(false);
nexa.setUnit(1);
System.out.println("Up and Running");

View file

@ -51,7 +51,7 @@ public class NexaSelfLearningTest {
NexaSelfLearning nexa = decode("0x2CE81990");
assertEquals("House Code", 11772006, nexa.getHouse());
assertEquals("Unit Code", 1, nexa.getUnit());
assertEquals("Unit Code", 0, nexa.getUnit());
assertTrue("Enabled", nexa.isOn());
@ -61,7 +61,7 @@ public class NexaSelfLearningTest {
NexaSelfLearning nexa = decode("0x2CE81980");
assertEquals("House Code", 11772006, nexa.getHouse());
assertEquals("Unit Code", 1, nexa.getUnit());
assertEquals("Unit Code", 0, nexa.getUnit());
assertFalse("Enabled", nexa.isOn());
}