EepA50401 implements EepReceive { @Override public EepType getType() { return eepType; } EepA50401(DeviceID deviceID, String commandString); @Override String toString(); @Override EepType getType(); @Override boolean update(EspRadioTelegram telegram); @Override void updateSensor(Sensor sensor); static final int EEP_A50401_TSN_OFFSET; static final int EEP_A50401_TSN_SIZE; static final String EEP_A50401_TSN_AVAILABLE_DESC; static final int EEP_A50401_TSN_AVAILABLE_VALUE; static final String EEP_A50401_TSN_NOT_AVAILABLE_DESC; static final int EEP_A50401_TSN_NOT_AVAILABLE_VALUE; static final int EEP_A50401_FRACTIONAL_DIGITS; }
@Test public void testBasicConstruction() throws Exception { Eep eep = EepType.lookup("A5-04-01").createEep( deviceID, Constants.TEMPERATURE_STATUS_COMMAND, null ); Assert.assertTrue(eep instanceof EepA50401); Assert.assertEquals(EepType.EEP_TYPE_A50401, eep.getType()); eep = EepType.lookup("07-04-01").createEep( deviceID, Constants.TEMPERATURE_STATUS_COMMAND, null ); Assert.assertTrue(eep instanceof EepA50401); Assert.assertEquals(EepType.EEP_TYPE_A50401, eep.getType()); }