private void addBoxPlot(ResultReportSection testChapter) {
// Check whether wrong initialization is handled correctly
boolean exceptionThrown = false;
try {
new BoxPlotDataView(testData, "The \\texttt{BoxPlotDataView}",
"The title", new String[] { "The variables", "The quantity" },
new String[] { "Var. 1", "Var. 2", "Var. 3" });
} catch (Throwable t) {
exceptionThrown = true;
}
assertTrue(exceptionThrown);
testChapter.addDataView(new BoxPlotDataView(testData,
"The \\texttt{BoxPlotDataView}", "A box plot", new String[] {
"The variables", "The quantity" }, new String[] { "Variable One",
"Var. 2", "Var. III", "Var. Four" }));
}