/**
* Returns the expected output for the test instance of this component
*/
private String getExpectedHTMLTextOutput(OutputFormat format) throws InvalidDDMSException {
Util.requireHTMLText(format);
DDMSVersion version = DDMSVersion.getCurrentVersion();
String prefix = "security.";
StringBuffer text = new StringBuffer();
if (version.isAtLeast("3.0"))
text.append(buildHTMLTextOutput(format, prefix + "excludeFromRollup", "true"));
if (version.isAtLeast("4.0.1")) {
text.append(buildHTMLTextOutput(format, prefix + "noticeList.notice.noticeText", "noticeText"));
text.append(buildHTMLTextOutput(format, prefix + "noticeList.notice.noticeText.pocType", "DoD-Dist-B"));
text.append(buildHTMLTextOutput(format, prefix + "noticeList.notice.noticeText.classification", "U"));
text.append(buildHTMLTextOutput(format, prefix + "noticeList.notice.noticeText.ownerProducer", "USA"));
text.append(buildHTMLTextOutput(format, prefix + "noticeList.notice.classification", "U"));
text.append(buildHTMLTextOutput(format, prefix + "noticeList.notice.ownerProducer", "USA"));
text.append(buildHTMLTextOutput(format, prefix + "noticeList.notice.noticeType", "DoD-Dist-B"));
text.append(buildHTMLTextOutput(format, prefix + "noticeList.notice.noticeReason", "noticeReason"));
text.append(buildHTMLTextOutput(format, prefix + "noticeList.notice.noticeDate", "2011-09-15"));
text.append(buildHTMLTextOutput(format, prefix + "noticeList.notice.unregisteredNoticeType",
"unregisteredNoticeType"));
if (version.isAtLeast("4.1")) {
text.append(buildHTMLTextOutput(format, prefix + "noticeList.notice.externalNotice", "false"));
}
text.append(buildHTMLTextOutput(format, prefix + "noticeList.classification", "U"));
text.append(buildHTMLTextOutput(format, prefix + "noticeList.ownerProducer", "USA"));
if (!version.isAtLeast("5.0"))
text.append(AccessTest.getFixture().getHTMLTextOutput(format, "security.", ""));
}
text.append(SecurityAttributesTest.getFixture().getHTMLTextOutput(format, prefix));
return (text.toString());
}