From da0351ebcdc96d4b1789607ce6c2cd6fd017a824 Mon Sep 17 00:00:00 2001 From: manoj Date: Tue, 20 Jan 2015 07:37:39 +0530 Subject: [PATCH] Change device type to device type Id --- .../carbon/device/mgt/core/dao/DeviceManagementDAOTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/dao/DeviceManagementDAOTests.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/dao/DeviceManagementDAOTests.java index f41c60097c6..abde92ae305 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/dao/DeviceManagementDAOTests.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/dao/DeviceManagementDAOTests.java @@ -147,7 +147,7 @@ public class DeviceManagementDAOTests { DeviceType deviceType = new DeviceType(); deviceType.setId(Long.parseLong("1")); - device.setDeviceType(deviceType.getId().intValue()); + device.setDeviceTypeId(deviceType.getId().intValue()); device.setOwnerShip(OwnerShip.BYOD.toString()); device.setOwnerId("111"); device.setTenantId(-1234);