mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Override getDevice methods in DeviceManagementProviderServiceMock
This commit is contained in:
parent
c42019a5db
commit
db3004ab91
@ -127,6 +127,15 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Device getDevice(String s, boolean b) throws DeviceManagementException {
|
||||
if (TestUtils.getDeviceId().equals(s)) {
|
||||
return TestUtils.getDevice();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Device getDevice(DeviceIdentifier deviceIdentifier, String s, boolean b) throws DeviceManagementException {
|
||||
return null;
|
||||
@ -142,6 +151,14 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Device getDevice(String s, Date date, boolean b) throws DeviceManagementException {
|
||||
if (TestUtils.getDeviceId().equals(s)) {
|
||||
return TestUtils.getDevice();
|
||||
} else {
|
||||
return null;
|
||||
} }
|
||||
|
||||
@Override
|
||||
public Device getDevice(DeviceIdentifier deviceIdentifier, String s, Date date, boolean b)
|
||||
throws DeviceManagementException {
|
||||
|
||||
@ -127,6 +127,15 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Device getDevice(String s, boolean b) throws DeviceManagementException {
|
||||
if (TestUtils.getDeviceId().equals(s)) {
|
||||
return TestUtils.getDevice();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Device getDevice(DeviceIdentifier deviceIdentifier, String s, boolean b) throws DeviceManagementException {
|
||||
return null;
|
||||
@ -142,6 +151,14 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Device getDevice(String s, Date date, boolean b) throws DeviceManagementException {
|
||||
if (TestUtils.getDeviceId().equals(s)) {
|
||||
return TestUtils.getDevice();
|
||||
} else {
|
||||
return null;
|
||||
} }
|
||||
|
||||
@Override
|
||||
public Device getDevice(DeviceIdentifier deviceIdentifier, String s, Date date, boolean b)
|
||||
throws DeviceManagementException {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user