diff --git a/nifi-mock/src/main/java/org/apache/nifi/util/MockFlowFile.java b/nifi-mock/src/main/java/org/apache/nifi/util/MockFlowFile.java index 8ad5a1744a..3150dc2db7 100644 --- a/nifi-mock/src/main/java/org/apache/nifi/util/MockFlowFile.java +++ b/nifi-mock/src/main/java/org/apache/nifi/util/MockFlowFile.java @@ -193,8 +193,8 @@ public class MockFlowFile implements FlowFileRecord { } public void assertAttributeNotExists(final String attributeName) { - Assert.assertFalse("Attribute " + attributeName + " not exists with value " + attributes.get(attributeName), - attributes.containsKey(attributeName)); + Assert.assertFalse("Attribute " + attributeName + " should not exist on FlowFile, but exists with value " + + attributes.get(attributeName), attributes.containsKey(attributeName)); } public void assertAttributeEquals(final String attributeName, final String expectedValue) {