@@ -0,0 +1,2089 @@
+/**%0A * %0A */%0Apackage eu.aleon.aleoncean.device.remote;%0A%0Aimport eu.aleon.aleoncean.packet.radio.userdata.UserDataScaleValueException;%0Aimport eu.aleon.aleoncean.packet.radio.RadioPacket4BS;%0Aimport eu.aleon.aleoncean.packet.radio.userdata.UserDataEEPA50205;%0Aimport org.junit.After;%0Aimport org.junit.AfterClass;%0Aimport static org.junit.Assert.*;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0A/**%0A * @author Thomas Stezaly (thomas.stezaly@aleuon.eu)%0A *%0A */%0Apublic class RemoteDeviceEEPA50205Test %7B%0A%0A    /**%0A     * @throws java.lang.Exception%0A     */%0A    @BeforeClass%0A    public static void setUpBeforeClass() throws Exception %7B%0A    %7D%0A%0A    /**%0A     * @throws java.lang.Exception%0A     */%0A    @AfterClass%0A    public static void tearDownAfterClass() throws Exception %7B%0A    %7D%0A%0A    /**%0A     * @throws java.lang.Exception%0A     */%0A    @Before%0A    public void setUp() throws Exception %7B%0A        %0A    %7D%0A%0A    /**%0A     * @throws java.lang.Exception%0A     */%0A    @After%0A    public void tearDown() throws Exception %7B%0A    %7D%0A%0A    @Test%0A    public void testSetGetTemperature() %7B%0A%0A        final double temperatureSet = 20.0;%0A        final UserDataEEPA50205 userData = new UserDataEEPA50205();%0A%0A        try %7B%0A            userData.setTemperature(temperatureSet);%0A            userData.setTeachIn(false);%0A        %7D catch (UserDataScaleValueException e) %7B%0A            fail(%22Throws exception: UserDataScaleValueException%22);%0A        %7D%0A%0A        final RadioPacket4BS packet = userData.generateRadioPacket();%0A        final RemoteDeviceEEPA50205 testDevice = new RemoteDeviceEEPA50205(null, packet.getSenderId(), packet.getDestinationId());%0A%0A        testDevice.parseRadioPacket(packet);%0A%0A        double temperatureGet = testDevice.getTemperature();%0A        double delta = temperatureGet - temperatureSet;%0A%0A        System.out.println(%22temperatureSet: %22+temperatureSet);%0A        System.out.println(%22temperatureGet: %22+temperatureGet);%0A%0A        // We use a delta of 0.2, because one range point fits to 0.15 degree.%0A        // So is this value acceptable%0A        assertTrue(delta %3C 0.2);%0A    %7D%0A%7D%0A

Add unit test for RD A5-02-05