EepA50701 implements EepReceive { @Override public EepType getType() { return eepType; } EepA50701(DeviceID deviceID, String commandString); @Override EepType getType(); @Override boolean update(EspRadioTelegram telegram); @Override void updateSensor(Sensor sensor); static final String EEP_A50701_PIRS_DATA_FIELD_NAME; static final int EEP_A50701_PIRS_OFFSET; static final int EEP_A50701_PIRS_SIZE; static final String EEP_A50701_PIRS_OFF_DESC; static final int EEP_A50701_PIRS_OFF_DATA_RANGE_MIN; static final int EEP_A50701_PIRS_OFF_DATA_RANGE_MAX; static final String EEP_A50701_PIRS_ON_DESC; static final int EEP_A50701_PIRS_ON_DATA_RANGE_MIN; static final int EEP_A50701_PIRS_ON_DATA_RANGE_MAX; }
@Test public void testBasicConstruction() throws Exception { Eep eep = EepType.lookup("A5-07-01").createEep( deviceID, Constants.PIR_STATUS_COMMAND, null ); Assert.assertTrue(eep instanceof EepA50701); Assert.assertEquals(EepType.EEP_TYPE_A50701, eep.getType()); eep = EepType.lookup("07-07-01").createEep( deviceID, Constants.PIR_STATUS_COMMAND, null ); Assert.assertTrue(eep instanceof EepA50701); Assert.assertEquals(EepType.EEP_TYPE_A50701, eep.getType()); }