[
https://issues.apache.org/jira/browse/NIFI-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14590271#comment-14590271
]
Mark Payne commented on NIFI-126:
---------------------------------
Similar to NIFI-75, I'm not sure that this ticket still makes sense. When this
ticket was created, the developer was always expected to emit either a CREATE
or RECEIVE event if the FlowFile was not generated from a parent. However, the
framework now generates a CREATE event automatically if the developer does not
emit their own event. So not sure that this is applicable anymore.
> Mock Framework should detect when session.create() called instead of
> session.create(FlowFile) / session.create(Collection<FlowFile>) without
> emitting CREATE/RECEIVE Provenance Event
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-126
> URL: https://issues.apache.org/jira/browse/NIFI-126
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Matt Gilman
> Assignee: Mark Payne
> Priority: Minor
> Fix For: 0.2.0
>
>
> In this case, the mock framework should throw AssertionError, indicating that
> session.create() was called but no CREATE/RECEIVE event was genrated.
> It is important that the Mock Framework also allow this check to be disabled,
> for processors such as MergeContent (and should indicate in the failure
> message how to disable).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)