Moti Asayag has uploaded a new change for review. Change subject: engine: Use typed empty list in BackwardCompatibilityTaskCreationTest ......................................................................
engine: Use typed empty list in BackwardCompatibilityTaskCreationTest Change-Id: I6b2712e02c107d9c280aed45675edc75f8a773a2 Signed-off-by: Moti Asayag <[email protected]> --- M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/BackwardCompatibilityTaskCreationTest.java 1 file changed, 4 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/28/40928/1 diff --git a/backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/BackwardCompatibilityTaskCreationTest.java b/backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/BackwardCompatibilityTaskCreationTest.java index 2d84fcc..04fce5a 100644 --- a/backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/BackwardCompatibilityTaskCreationTest.java +++ b/backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/BackwardCompatibilityTaskCreationTest.java @@ -37,8 +37,10 @@ import org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo; import org.ovirt.engine.core.common.asynctasks.AsyncTaskType; import org.ovirt.engine.core.common.asynctasks.EntityInfo; +import org.ovirt.engine.core.common.businessentities.AsyncTask; import org.ovirt.engine.core.common.businessentities.AsyncTaskResultEnum; import org.ovirt.engine.core.common.businessentities.AsyncTaskStatusEnum; +import org.ovirt.engine.core.common.businessentities.CommandEntity; import org.ovirt.engine.core.common.businessentities.VM; import org.ovirt.engine.core.common.config.ConfigValues; import org.ovirt.engine.core.compat.Guid; @@ -77,11 +79,11 @@ @Before public void before() { AsyncTaskDAO asyncTaskDao = mock(AsyncTaskDAO.class); - when(asyncTaskDao.getAll()).thenReturn(Collections.EMPTY_LIST); + when(asyncTaskDao.getAll()).thenReturn(Collections.<AsyncTask> emptyList()); when(DbFacade.getInstance().getAsyncTaskDao()).thenReturn(asyncTaskDao); CommandEntityDao cmdEntityDao = mock(CommandEntityDao.class); when(DbFacade.getInstance().getCommandEntityDao()).thenReturn(cmdEntityDao); - when(cmdEntityDao.getAll()).thenReturn(Collections.EMPTY_LIST); + when(cmdEntityDao.getAll()).thenReturn(Collections.<CommandEntity> emptyList()); } @SuppressWarnings({ "unchecked", "rawtypes"}) -- To view, visit https://gerrit.ovirt.org/40928 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6b2712e02c107d9c280aed45675edc75f8a773a2 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Moti Asayag <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
