Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-3761

testFullyDocumentedProcessor assertion never evals to false

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.0
    • None
    • None

    Description

      As displayed here:

              if (tags != null) {
                  final String tagString = join(tags.value(), ", ");
                  xmlStreamWriter.writeCharacters(tagString);
              } else {
                  xmlStreamWriter.writeCharacters("None.");
              }
              xmlStreamWriter.writeEndElement();
      

      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.");

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            trixpan Andre F de Miranda
            trixpan Andre F de Miranda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment