mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing repository test failure
This commit is contained in:
parent
ca6c9f1ec7
commit
fcc6dd1564
@ -31,9 +31,6 @@ public class TestTaskManagerImpl implements TaskManager {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean deleteTask(String taskName) throws TaskException {
|
public boolean deleteTask(String taskName) throws TaskException {
|
||||||
if(this.registeredTasks.size() <= 0) {
|
|
||||||
throw new TaskException("Cannot delete task.", TaskException.Code.NO_TASK_EXISTS);
|
|
||||||
}
|
|
||||||
for (TaskInfo task : this.registeredTasks) {
|
for (TaskInfo task : this.registeredTasks) {
|
||||||
if (task.getName().contains(taskName)) {
|
if (task.getName().contains(taskName)) {
|
||||||
this.registeredTasks.remove(task);
|
this.registeredTasks.remove(task);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user