Alona Kaplan has posted comments on this change.

Change subject: core: refactor&test for HostNetworkAttachmentsPersister
......................................................................


Patch Set 37:

(1 comment)

https://gerrit.ovirt.org/#/c/36067/37/backend/manager/modules/vdsbroker/src/test/java/org/ovirt/engine/core/vdsbroker/vdsbroker/HostNetworkAttachmentsPersisterTest.java
File 
backend/manager/modules/vdsbroker/src/test/java/org/ovirt/engine/core/vdsbroker/vdsbroker/HostNetworkAttachmentsPersisterTest.java:

Line 258: 
Line 259:         ArgumentCaptor<NetworkAttachment> networkAttachmentCaptor = 
ArgumentCaptor.forClass(NetworkAttachment.class);
Line 260:         
verify(networkAttachmentDao).save(networkAttachmentCaptor.capture());
Line 261: 
Line 262:         assertThat(networkAttachmentCaptor.getValue().getNetworkId(), 
is(clusterNetworkA.getId()));
Please move the assertions comparison to the captor to a separate method. It 
can be reused it three different places.
Line 263:         assertThat(networkAttachmentCaptor.getValue().getNicId(), 
is(interfaceWithAttachedClusterNetworkA.getId()));
Line 264:         assertThat(networkAttachmentCaptor.getValue().getId(), 
notNullValue());
Line 265:         //TODO MM: verify also properties? do we want to be so 
specific?
Line 266: 


-- 
To view, visit https://gerrit.ovirt.org/36067
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib39c3678a29a7bd8728d32b55490f8500a77d9d6
Gerrit-PatchSet: 37
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Mucha <mmu...@redhat.com>
Gerrit-Reviewer: Alona Kaplan <alkap...@redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Mucha <mmu...@redhat.com>
Gerrit-Reviewer: Moti Asayag <masa...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to