Idan Shaby has posted comments on this change. Change subject: core: redesign MemoryStorageHandlerTest to use mocks ......................................................................
Patch Set 1: (1 comment) https://gerrit.ovirt.org/#/c/40435/1/backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/memory/MemoryStorageHandlerTest.java File backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/memory/MemoryStorageHandlerTest.java: Line 67: Line 68: private void initStorageDomains() { Line 69: validStorageDomain = initStorageDomain(); Line 70: invalidStorageDomain1 = initStorageDomain(); Line 71: invalidStorageDomain2 = initStorageDomain(); > These are all initialized together - what makes one valid and the others no OK, if I mock each domain right after initializing it, will it be more clear? Line 72: } Line 73: Line 74: private StorageDomain initStorageDomain() { Line 75: StorageDomain storageDomain = new StorageDomain(); -- To view, visit https://gerrit.ovirt.org/40435 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ibe874762dda6967a1bc5e29c973fac7b00fbda70 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Idan Shaby <ish...@redhat.com> Gerrit-Reviewer: Ala Hino <ah...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Amit Aviram <aavi...@redhat.com> Gerrit-Reviewer: Candace Sheremeta <csher...@redhat.com> Gerrit-Reviewer: Freddy Rolland <froll...@redhat.com> Gerrit-Reviewer: Idan Shaby <ish...@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Tal Nisan <tni...@redhat.com> Gerrit-Reviewer: Vered Volansky <vvola...@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