mirror of https://github.com/apache/nifi.git
NIFI-5385 assertAttributeNotExists Is hard to understand
This closes #2850 Signed-off-by: Mike Thomsen <mikerthomsen@gmail.com>
This commit is contained in:
parent
40c4b2c771
commit
0c5e159ebc
|
@ -193,8 +193,8 @@ public class MockFlowFile implements FlowFileRecord {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void assertAttributeNotExists(final String attributeName) {
|
public void assertAttributeNotExists(final String attributeName) {
|
||||||
Assert.assertFalse("Attribute " + attributeName + " not exists with value " + attributes.get(attributeName),
|
Assert.assertFalse("Attribute " + attributeName + " should not exist on FlowFile, but exists with value "
|
||||||
attributes.containsKey(attributeName));
|
+ attributes.get(attributeName), attributes.containsKey(attributeName));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void assertAttributeEquals(final String attributeName, final String expectedValue) {
|
public void assertAttributeEquals(final String attributeName, final String expectedValue) {
|
||||||
|
|
Loading…
Reference in New Issue