1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-03 17:02:13 +01:00

Tests: set device state to inizialized before assuming fw version gets written to attributes

This commit is contained in:
Andreas Shimokawa 2017-04-17 19:19:23 +02:00
parent 0cf3625304
commit a936ff0616

View File

@ -178,6 +178,8 @@ public class EntitiesTest extends TestBase {
public void testDeviceAttributes() throws Exception {
GBDevice dummyGBDevice = createDummyGDevice("00:00:00:00:02");
dummyGBDevice.setFirmwareVersion("1.0");
dummyGBDevice.setState(GBDevice.State.INITIALIZED);
Device deviceOld = DBHelper.getDevice(dummyGBDevice, daoSession);
assertNotNull(deviceOld);