Gilad Chaplik has posted comments on this change. Change subject: core, db: Introduce CPU profile DAL ......................................................................
Patch Set 1: (2 comments) http://gerrit.ovirt.org/#/c/31623/1/backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/DbFacadeDAOTest.java File backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/DbFacadeDAOTest.java: Line 332: public void testGetEntityNameByIdAndTypeForCpuProfile() { Line 333: CpuProfile cpuProfile = dbFacade.getCpuProfileDao().get(FixturesTool.CPU_PROFILE_1); Line 334: assertNotNull(cpuProfile); Line 335: String name = cpuProfile.getName(); Line 336: assertTrue(name.equals(dbFacade.getEntityNameByIdAndType(FixturesTool.CPU_PROFILE_1, VdcObjectType.CpuProfile))); > can you replace with assertEquals? Done Line 337: } http://gerrit.ovirt.org/#/c/31623/1/backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/profiles/CpuProfileDaoTest.java File backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/profiles/CpuProfileDaoTest.java: Line 12: import org.ovirt.engine.core.compat.Guid; Line 13: import org.ovirt.engine.core.dao.BaseDAOTestCase; Line 14: import org.ovirt.engine.core.dao.FixturesTool; Line 15: Line 16: public class CpuProfileDaoTest extends BaseDAOTestCase { > as it is common to set non-exiting GUIDs only in our REST API tests, I don' just did grep to it, we have quite a lot of it; I have a lot of time this evening so I read this: http://en.wikipedia.org/wiki/Universally_unique_identifier#Random_UUID_probability_of_duplicates I guess that when the test will fail, we need to start buying lottery tickets :) Line 17: Line 18: private CpuProfile cpuProfile; Line 19: private CpuProfileDao dao; Line 20: -- To view, visit http://gerrit.ovirt.org/31623 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9d3b9d4737d523a722a688485e45d2a77775e2ea Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Gilad Chaplik <[email protected]> Gerrit-Reviewer: Arik Hadas <[email protected]> Gerrit-Reviewer: Gilad Chaplik <[email protected]> Gerrit-Reviewer: [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
