mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
updating the default configurations for test cases.
This commit is contained in:
parent
d214411f9a
commit
91e1268ca8
@ -69,8 +69,8 @@ public abstract class BaseDeviceManagementTest {
|
|||||||
|
|
||||||
@BeforeSuite
|
@BeforeSuite
|
||||||
@Parameters({"datasource", "isMock"})
|
@Parameters({"datasource", "isMock"})
|
||||||
public void setupDataSource(@Optional("src/test/resources/config/datasource/mysql/data-source-config") String datasource,
|
public void setupDataSource(@Optional("src/test/resources/config/datasource/data-source-config") String datasource,
|
||||||
@Optional("true") boolean isMock)
|
@Optional("false") boolean isMock)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
datasourceLocation = datasource;
|
datasourceLocation = datasource;
|
||||||
mock = isMock;
|
mock = isMock;
|
||||||
|
|||||||
@ -500,6 +500,7 @@ public class DeviceManagementProviderServiceTest extends BaseDeviceManagementTes
|
|||||||
@Test(dependsOnMethods = {"testSuccessfulDeviceEnrollment"})
|
@Test(dependsOnMethods = {"testSuccessfulDeviceEnrollment"})
|
||||||
public void testUpdateDeviceInfo() throws DeviceManagementException,
|
public void testUpdateDeviceInfo() throws DeviceManagementException,
|
||||||
TransactionManagementException, DeviceDetailsMgtDAOException {
|
TransactionManagementException, DeviceDetailsMgtDAOException {
|
||||||
|
if (!isMock()) {
|
||||||
Device device = deviceMgtService.getDevice(new DeviceIdentifier(DEVICE_ID,
|
Device device = deviceMgtService.getDevice(new DeviceIdentifier(DEVICE_ID,
|
||||||
DEVICE_TYPE));
|
DEVICE_TYPE));
|
||||||
|
|
||||||
@ -507,6 +508,7 @@ public class DeviceManagementProviderServiceTest extends BaseDeviceManagementTes
|
|||||||
DEVICE_TYPE), device);
|
DEVICE_TYPE), device);
|
||||||
Assert.assertTrue(status);
|
Assert.assertTrue(status);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Test(dependsOnMethods = {"testSuccessfulDeviceEnrollment"})
|
@Test(dependsOnMethods = {"testSuccessfulDeviceEnrollment"})
|
||||||
public void testDeviceByDateWithNonExistentDevice() throws DeviceManagementException,
|
public void testDeviceByDateWithNonExistentDevice() throws DeviceManagementException,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user