Shireesh Anjal has posted comments on this change.
Change subject: engine: New test method in DBConfigUtilsTest
......................................................................
Patch Set 1: (3 inline comments)
Thanks Allon, new patch-set to follow.
....................................................
File
backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dal/dbbroker/generic/DBConfigUtilsTest.java
Line 67: public void testGetValue() {
Line 68: // Verify that values for 3.0 and 3.2 are from DB (since the
entries are present in fixtures.xml)
Line 69: // and for 3.1, it's the default value from annotation in
ConfigValues.
Line 70: // 3.0 -> false, 3.1 -> true, 3.2 -> true
Line 71:
Assert.assertFalse((Boolean)config.GetValue(ConfigValues.NonVmNetworkSupported,
"3.0"));
Yeah, that was really stupid :)
Line 72: Assert.assertFalse(Config.<Boolean>
GetValue(ConfigValues.NonVmNetworkSupported, "3.0"));
Line 73:
Line 74:
Assert.assertTrue((Boolean)config.GetValue(ConfigValues.NonVmNetworkSupported,
"3.1"));
Line 75: Assert.assertTrue(Config.<Boolean>
GetValue(ConfigValues.NonVmNetworkSupported, "3.1"));
Line 70: // 3.0 -> false, 3.1 -> true, 3.2 -> true
Line 71:
Assert.assertFalse((Boolean)config.GetValue(ConfigValues.NonVmNetworkSupported,
"3.0"));
Line 72: Assert.assertFalse(Config.<Boolean>
GetValue(ConfigValues.NonVmNetworkSupported, "3.0"));
Line 73:
Line 74:
Assert.assertTrue((Boolean)config.GetValue(ConfigValues.NonVmNetworkSupported,
"3.1"));
Done
Line 75: Assert.assertTrue(Config.<Boolean>
GetValue(ConfigValues.NonVmNetworkSupported, "3.1"));
Line 76:
Line 77:
Assert.assertTrue((Boolean)config.GetValue(ConfigValues.NonVmNetworkSupported,
"3.2"));
Line 78: Assert.assertTrue(Config.<Boolean>
GetValue(ConfigValues.NonVmNetworkSupported, "3.2"));
Line 73:
Line 74:
Assert.assertTrue((Boolean)config.GetValue(ConfigValues.NonVmNetworkSupported,
"3.1"));
Line 75: Assert.assertTrue(Config.<Boolean>
GetValue(ConfigValues.NonVmNetworkSupported, "3.1"));
Line 76:
Line 77:
Assert.assertTrue((Boolean)config.GetValue(ConfigValues.NonVmNetworkSupported,
"3.2"));
Done
Line 78: Assert.assertTrue(Config.<Boolean>
GetValue(ConfigValues.NonVmNetworkSupported, "3.2"));
Line 79: }
--
To view, visit http://gerrit.ovirt.org/13787
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia736419e766bc6ce2e82158f775817e885b90dfd
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shireesh Anjal <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Mike Kolesnik <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Sahina Bose <[email protected]>
Gerrit-Reviewer: Shireesh Anjal <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches