Skip to content

Commit

Permalink
NIFI-14110 Enhance tests to ensure FlowFiles are rejected once size l…
Browse files Browse the repository at this point in the history
…imit was reached
  • Loading branch information
EndzeitBegins committed Dec 28, 2024
1 parent 3715edb commit 4da4d0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ public FlowFileFilterResult filter(final FlowFile flowFile) {
}
};
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ void rejectsFlowFilesOnceMaxSizeWasReached() {
assertEquals(ACCEPT_AND_CONTINUE, filter.filter(emptyFlowFile()));

assertEquals(REJECT_AND_TERMINATE, filter.filter(flowFileOfSize(1)));

// empty content FlowFiles are no longer accepted
assertEquals(REJECT_AND_TERMINATE, filter.filter(emptyFlowFile()));
}

private FlowFile emptyFlowFile() {
Expand Down

0 comments on commit 4da4d0b

Please sign in to comment.