ofri masad has posted comments on this change. Change subject: core : QuotaMnager Test - basic structure ......................................................................
Patch Set 6: (3 inline comments) .................................................... File backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/quota/QuotaManagerTest.java Line 22: import java.util.List; Line 23: Line 24: import static org.junit.Assert.assertTrue; Line 25: import static org.mockito.Matchers.any; Line 26: import static org.mockito.Mockito.*; Done Line 27: Line 28: @RunWith(MockitoJUnitRunner.class) Line 29: public class QuotaManagerTest { Line 30: Line 235: private List<QuotaVdsGroup> getQuotaVdsGroups(int vCpu, int vCpuUsed, long mem, long memUsed) { Line 236: ArrayList<QuotaVdsGroup> quotaVdsGroups = new ArrayList<QuotaVdsGroup>(); Line 237: quotaVdsGroups.add(getQuotaVdsGroup(UNLIMITED_VCPU, 0, UNLIMITED_MEM, 0)); Line 238: quotaVdsGroups.add(getQuotaVdsGroup(10, 2, 1000, 100)); Line 239: quotaVdsGroups.get(0).setVdsGroupId(new Guid()); Done Line 240: quotaVdsGroups.get(1).setVdsGroupId(new Guid()); Line 241: quotaVdsGroups.add(getQuotaVdsGroup(vCpu, vCpuUsed, mem, memUsed)); Line 242: return quotaVdsGroups; Line 243: } Line 236: ArrayList<QuotaVdsGroup> quotaVdsGroups = new ArrayList<QuotaVdsGroup>(); Line 237: quotaVdsGroups.add(getQuotaVdsGroup(UNLIMITED_VCPU, 0, UNLIMITED_MEM, 0)); Line 238: quotaVdsGroups.add(getQuotaVdsGroup(10, 2, 1000, 100)); Line 239: quotaVdsGroups.get(0).setVdsGroupId(new Guid()); Line 240: quotaVdsGroups.get(1).setVdsGroupId(new Guid()); Done Line 241: quotaVdsGroups.add(getQuotaVdsGroup(vCpu, vCpuUsed, mem, memUsed)); Line 242: return quotaVdsGroups; Line 243: } Line 244: -- To view, visit http://gerrit.ovirt.org/8422 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ie2ff7377f01fdc9de9edb5650cc796e24a8f65c3 Gerrit-PatchSet: 6 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: ofri masad <oma...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com> Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com> Gerrit-Reviewer: Laszlo Hornyak <lhorn...@redhat.com> Gerrit-Reviewer: ofri masad <oma...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches