Sergey Gotliv has posted comments on this change.

Change subject: engine, dao: Introduce ISCSI Bond entity, tables and dao
......................................................................


Patch Set 12:

(1 comment)

http://gerrit.ovirt.org/#/c/22951/12/backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/storage/GetIscsiBondsByStoragePoolIdQueryTest.java
File 
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/storage/GetIscsiBondsByStoragePoolIdQueryTest.java:

Line 29: 
Line 30:         when(getQueryParameters().getId()).thenReturn(storagePoolId);
Line 31:         
when(getDbFacadeMockInstance().getIscsiBondDao()).thenReturn(iscsiBondDao);
Line 32:         
when(iscsiBondDao.getAllByStoragePoolId(storagePoolId)).thenReturn(Collections.singletonList(iscsiBond));
Line 33:         when(iscsiBondDao.getNetworkIdsByIscsiBondId((Guid) 
anyObject())).thenReturn(Collections.singletonList(networkId));
> consider replacing "(Guid) anyObject" with "any(Guid.class)"
I modified that test according to Liron's comment from the previous patch set.
Line 34:         when(iscsiBondDao.getStorageConnectionIdsByIscsiBondId((Guid) 
anyObject())).thenReturn(Collections.singletonList(connectionId));
Line 35: 
Line 36:         getQuery().executeQueryCommand();
Line 37: 


-- 
To view, visit http://gerrit.ovirt.org/22951
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I12313c02810a2f0e75016bdd78b44da43f2154d4
Gerrit-PatchSet: 12
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Amador Pahim <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to