|
|
|
@ -160,7 +160,9 @@ public class DeviceManagementDAOTests {
|
|
|
|
|
String deviceStatus = null;
|
|
|
|
|
try {
|
|
|
|
|
conn = DeviceManagementDAOFactory.getDataSource().getConnection();
|
|
|
|
|
stmt = conn.prepareStatement("SELECT ID,STATUS from DM_DEVICE DEVICE where DEVICE.DEVICE_IDENTIFICATION='111'");
|
|
|
|
|
stmt = conn.prepareStatement(
|
|
|
|
|
"SELECT ID,STATUS from DM_DEVICE DEVICE where DEVICE.DEVICE_IDENTIFICATION=?");
|
|
|
|
|
stmt.setString(1,"111");
|
|
|
|
|
rs = stmt.executeQuery();
|
|
|
|
|
|
|
|
|
|
while (rs.next()) {
|
|
|
|
@ -174,7 +176,7 @@ public class DeviceManagementDAOTests {
|
|
|
|
|
}
|
|
|
|
|
Assert.assertNotNull(deviceId, "Device Id is null");
|
|
|
|
|
Assert.assertNotNull(deviceStatus, "Device status is null");
|
|
|
|
|
Assert.assertEquals(deviceStatus,"ACTIVE","enroll device status should active");
|
|
|
|
|
Assert.assertEquals(deviceStatus, "ACTIVE", "Enroll device status should active");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|