Skip to content

Commit

Permalink
fixing report tests..
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Apr 16, 2015
1 parent 254f114 commit 5c2e990
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -61,6 +61,7 @@
import com.evolveum.midpoint.model.test.AbstractModelIntegrationTest;
import com.evolveum.midpoint.prism.ItemDefinition;
import com.evolveum.midpoint.prism.Objectable;
import com.evolveum.midpoint.prism.PrismContainer;
import com.evolveum.midpoint.prism.PrismContext;
import com.evolveum.midpoint.prism.PrismObject;
import com.evolveum.midpoint.prism.PrismObjectDefinition;
Expand Down Expand Up @@ -750,7 +751,7 @@ public void test004RunReport() throws Exception {
LOGGER.info("jasper report template: " + new String(Base64.decodeBase64(reportType.getTemplateStyle())));
//WHEN
TestUtil.displayWhen(TEST_NAME);
reportManager.runReport(reportType.asPrismObject(), new ArrayList(), task, result);
reportManager.runReport(reportType.asPrismObject(), new PrismContainer(null), task, result);

// THEN
TestUtil.displayThen(TEST_NAME);
Expand Down Expand Up @@ -1260,7 +1261,7 @@ public void test013CreateAuditLogsReportFromFile() throws Exception {

//WHEN
TestUtil.displayWhen(TEST_NAME);
reportManager.runReport(reportType.asPrismObject(), new ArrayList(), task, result);
reportManager.runReport(reportType.asPrismObject(), new PrismContainer(null), task, result);

// THEN
TestUtil.displayThen(TEST_NAME);
Expand Down Expand Up @@ -1365,7 +1366,7 @@ public void test015CreateUserListReportFromFile() throws Exception {

//WHEN
TestUtil.displayWhen(TEST_NAME);
reportManager.runReport(reportType.asPrismObject(), new ArrayList(), task, result);
reportManager.runReport(reportType.asPrismObject(), new PrismContainer(null), task, result);

// THEN
TestUtil.displayThen(TEST_NAME);
Expand Down Expand Up @@ -1431,7 +1432,7 @@ public void test015ACreateCustomDSReportFromFile() throws Exception {

//WHEN
TestUtil.displayWhen(TEST_NAME);
reportManager.runReport(reportType.asPrismObject(), new ArrayList(), task, result);
reportManager.runReport(reportType.asPrismObject(), new PrismContainer(null), task, result);

// THEN
TestUtil.displayThen(TEST_NAME);
Expand Down Expand Up @@ -1470,7 +1471,7 @@ public void test016CreateReconciliationReportFromFile() throws Exception {

//WHEN
TestUtil.displayWhen(TEST_NAME);
reportManager.runReport(reportType.asPrismObject(), new ArrayList(), task, result);
reportManager.runReport(reportType.asPrismObject(), new PrismContainer(null), task, result);

// THEN
TestUtil.displayThen(TEST_NAME);
Expand Down

0 comments on commit 5c2e990

Please sign in to comment.