mirror of https://github.com/apache/nifi.git
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:
parent
978f483ba8
commit
2f3017638f
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue