NIFI-5385 assertAttributeNotExists Is hard to understand

This closes #2850

Signed-off-by: Mike Thomsen <mikerthomsen@gmail.com>
This commit is contained in:
patricker 2018-07-06 10:44:38 -06:00 committed by Mike Thomsen
parent 40c4b2c771
commit 0c5e159ebc
1 changed files with 2 additions and 2 deletions

View File

@ -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) {