You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Andre F de Miranda (JIRA)" <ji...@apache.org> on 2017/04/29 02:53:04 UTC
[jira] [Updated] (NIFI-3761) testFullyDocumentedProcessor assertion
never evals to false
[ https://issues.apache.org/jira/browse/NIFI-3761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andre F de Miranda updated NIFI-3761:
-------------------------------------
Description:
As displayed here:
{code}
if (tags != null) {
final String tagString = join(tags.value(), ", ");
xmlStreamWriter.writeCharacters(tagString);
} else {
xmlStreamWriter.writeCharacters("None.");
}
xmlStreamWriter.writeEndElement();
{code}
when a processor contains no tags we append xmlStreamWriter with:
"None."
As consequence the following Assertion within testFullyDocumentedProcessor should never evaluate to false
{{assertNotContains(results, "No Tags provided.");}}
was:
As displayed here:
{code}
if (tags != null) {
final String tagString = join(tags.value(), ", ");
xmlStreamWriter.writeCharacters(tagString);
} else {
xmlStreamWriter.writeCharacters("None.");
}
xmlStreamWriter.writeEndElement();
{code}
when a processor contains no tags we append xmlStreamWriter with:
"None."
As consequence the following test Assertion should never evaluate to false
{{assertNotContains(results, "No Tags provided.");}}
> testFullyDocumentedProcessor assertion never evals to false
> -----------------------------------------------------------
>
> Key: NIFI-3761
> URL: https://issues.apache.org/jira/browse/NIFI-3761
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Andre F de Miranda
> Assignee: Andre F de Miranda
>
> As displayed here:
> {code}
> if (tags != null) {
> final String tagString = join(tags.value(), ", ");
> xmlStreamWriter.writeCharacters(tagString);
> } else {
> xmlStreamWriter.writeCharacters("None.");
> }
> xmlStreamWriter.writeEndElement();
> {code}
> when a processor contains no tags we append xmlStreamWriter with:
> "None."
> As consequence the following Assertion within testFullyDocumentedProcessor should never evaluate to false
> {{assertNotContains(results, "No Tags provided.");}}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)