}
}
public static void testReport2() throws Exception
{
StatusreportDocument doc = StatusreportDocument.Factory.newInstance();
StatusreportDocument.Statusreport report = doc.addNewStatusreport();
Data d = report.addNewStatus();
d.set(Quantity.ALL);
d.setTarget(Quantity.ALL);
d = report.addNewStatus();
d.set(Quantity.FEW);
d.setTarget(Quantity.ALL);
d = report.addNewStatus();
d.set(Quantity.MOST);
d.setTarget(Quantity.NONE);
d = report.addNewStatus();
d.set(Quantity.NONE);
d.setTarget(Quantity.NONE);
Quantity.Enum[] contents = new Quantity.Enum[]
{
Quantity.ALL,
Quantity.ALL,
Quantity.FEW,
Quantity.ALL,
Quantity.MOST,
Quantity.NONE,
Quantity.NONE,
Quantity.NONE,
};
Data[] data = doc.getStatusreport().getStatusArray();
int t = 0;
for (int i = 0; i < data.length; i++)
{
Assert.assertEquals(contents[t++], data[i].enumValue());
// System.out.println("Target: " + data[i].getTarget() + ", value: " + data[i].enumValue());