EepD50001 implements EepReceive { @Override public EepType getType() { return eepType; } EepD50001(DeviceID deviceID, String commandString); @Override String toString(); @Override EepType getType(); @Override boolean update(EspRadioTelegram telegram); @Override void updateSensor(Sensor sensor); static final String EEP_D50001_LRN_NAME; static final String EEP_D50001_LRN_PRESSED_DESC; static final int EEP_D50001_LRN_PRESSED_VALUE; static final String EEP_D50001_LRN_NOT_PRESSED_DESC; static final int EEP_D50001_LRN_NOT_PRESSED_VALUE; static final String EEP_D50001_CO_NAME; static final int EEP_D50001_CO_OFFSET; static final int EEP_D50001_CO_SIZE; static final String EEP_D50001_CO_OPEN_DESC; static final int EEP_D50001_CO_OPEN_VALUE; static final String EEP_D50001_CO_CLOSED_DESC; static final int EEP_D50001_CO_CLOSED_VALUE; }
@Test public void testBasicConstruction() throws Exception { Eep eep = EepType.lookup("D5-00-01").createEep( deviceID, Constants.CONTACT_STATUS_COMMAND, null ); Assert.assertTrue(eep instanceof EepD50001); Assert.assertEquals(EepType.EEP_TYPE_D50001, eep.getType()); eep = EepType.lookup("06-00-01").createEep( deviceID, Constants.CONTACT_STATUS_COMMAND, null ); Assert.assertTrue(eep instanceof EepD50001); Assert.assertEquals(EepType.EEP_TYPE_D50001, eep.getType()); }