if (!version.isAtLeast("4.0.1"))
prefix += "TimePeriod.";
StringBuffer text = new StringBuffer();
text.append(buildHTMLTextOutput(format, prefix + "name", TEST_NAME));
if (isApproximable) {
ApproximableDate start = new ApproximableDate(ApproximableDateTest.getFixtureElement("approximableStart",
true));
ApproximableDate end = new ApproximableDate(ApproximableDateTest.getFixtureElement("approximableEnd", true));
text.append(start.getHTMLTextOutput(format, prefix, ""));
text.append(end.getHTMLTextOutput(format, prefix, ""));
}
else {
text.append(buildHTMLTextOutput(format, prefix + "start", TEST_START));
text.append(buildHTMLTextOutput(format, prefix + "end", TEST_END));
}