Allon Mureinik has posted comments on this change. Change subject: core: Make ConfigValuesTest more informative ......................................................................
Patch Set 1: (1 comment) http://gerrit.ovirt.org/#/c/36551/1/backend/manager/modules/common/src/test/java/org/ovirt/engine/core/common/queries/ConfigValuesTest.java File backend/manager/modules/common/src/test/java/org/ovirt/engine/core/common/queries/ConfigValuesTest.java: Line 31: List<ConfigurationValues> missingKeys = new ArrayList<ConfigurationValues>(); Line 32: for (ConfigurationValues configValue : ConfigurationValues.values()) { Line 33: if (!configValuesEnumNames.contains(configValue.toString())) { Line 34: log.error("Found missing key: {}", configValue); Line 35: foundMissingKeys = true; > We can just check if the list is empty basically, but since it's a test and Let's remove it. IMHO, it just adds noise instead of readability. Also, I'd use a TreeSet instead of an ArrayList, so the resulting missing keys are sorted (easier to read like this, IMHO). Line 36: missingKeys.add(configValue); Line 37: break; Line 38: } Line 39: } -- To view, visit http://gerrit.ovirt.org/36551 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Icb921f082350d19006c7b977c2697009bbc2a10d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Tal Nisan <[email protected]> Gerrit-Reviewer: Allon Mureinik <[email protected]> Gerrit-Reviewer: Oved Ourfali <[email protected]> Gerrit-Reviewer: Tal Nisan <[email protected]> Gerrit-Reviewer: Yair Zaslavsky <[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
