Example #1
0
 private static <T> void assertAttributesNotEqual(
     ConfigurationMetadata<T> metadata, T actual, T expected) {
   for (AttributeMetadata attribute : metadata.getAttributes().values()) {
     Method getter = attribute.getGetter();
     if (getter == null) {
       continue;
     }
     Object actualAttributeValue = invoke(actual, getter);
     Object expectedAttributeValue = invoke(expected, getter);
     Assertions.assertNotEquals(actualAttributeValue, expectedAttributeValue, attribute.getName());
   }
 }