/** * Prints the inconsistent properties in server-side configuration. * * @param inconsistentProperties the inconsistent properties to print */ private void printInconsistentProperties( Map<Scope, List<InconsistentProperty>> inconsistentProperties) { for (List<InconsistentProperty> list : inconsistentProperties.values()) { for (InconsistentProperty prop : list) { mPrintStream.println("key: " + prop.getName()); for (Map.Entry<Optional<String>, List<String>> entry : prop.getValues().entrySet()) { mPrintStream.println(" value: " + String.format("%s (%s)", entry.getKey().orElse("no value set"), String.join(", ", entry.getValue()))); } } } } }
/** * Checks if the two InconsistentProperty objects are equal. * * @param a the first InconsistentProperty object to be checked * @param b the second InconsistentProperty object to be checked */ private void checkEquality(InconsistentProperty a, InconsistentProperty b) { Assert.assertEquals(a.getName(), b.getName()); Assert.assertEquals(a.getValues(), b.getValues()); Assert.assertEquals(a, b); } }