NIFI-3239:

- Indicating components are not restricted when appropriate.
- Updating unit tests.

This closes #1350.

Signed-off-by: Aldrin Piri <aldrin@apache.org>
This commit is contained in:
Matt Gilman 2016-12-21 15:51:00 -05:00 committed by Aldrin Piri
parent 978f483ba8
commit 2f3017638f
No known key found for this signature in database
GPG Key ID: 531AEBAA4CFE5D00
2 changed files with 7 additions and 3 deletions

View File

@ -162,7 +162,7 @@ public class HtmlDocumentationWriter implements DocumentationWriter {
xmlStreamWriter.writeEndElement(); xmlStreamWriter.writeEndElement();
} else { } else {
xmlStreamWriter.writeCharacters("This processor has no state management."); xmlStreamWriter.writeCharacters("This component does not store state.");
} }
} }
@ -180,7 +180,9 @@ public class HtmlDocumentationWriter implements DocumentationWriter {
writeSimpleElement(xmlStreamWriter, "h3", "Restricted: "); writeSimpleElement(xmlStreamWriter, "h3", "Restricted: ");
if(restricted != null) { if(restricted != null) {
writeSimpleElement(xmlStreamWriter, "td", restricted.value()); xmlStreamWriter.writeCharacters(restricted.value());
} else {
xmlStreamWriter.writeCharacters("This component is not restricted.");
} }
} }

View File

@ -116,8 +116,10 @@ public class ProcessorDocumentationWriterTest {
assertContains(results, "This processor has no relationships."); assertContains(results, "This processor has no relationships.");
// state management // state management
assertContains(results, "This processor has no state management."); assertContains(results, "This component does not store state.");
// state management
assertContains(results, "This component is not restricted.");
} }
@Test @Test