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

master
Andreas Shimokawa 2017-04-17 19:19:23 +02:00
parent 0cf3625304
commit a936ff0616
1 changed files with 2 additions and 0 deletions

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);