use of org.opennms.api.reporting.parameter.ReportParameters in project opennms by OpenNMS.
the class JasperReportServiceTest method testStringInputType.
@Test
public void testStringInputType() throws ReportException {
ReportParameters reportParameters = m_reportService.getParameters(REPORTID);
ReportStringParm stringParm2 = reportParameters.getStringParms().get(1);
Assert.assertEquals("onmsCategorySelector", stringParm2.getInputType());
}
use of org.opennms.api.reporting.parameter.ReportParameters in project opennms by OpenNMS.
the class JasperReportServiceGetParametersTest method readPropertiesOfJasperResourceInputStreamURITest.
@Test
public void readPropertiesOfJasperResourceInputStreamURITest() throws ReportException {
String id = "REMOTE_jasper-resource-inputstream-uri-test";
assertNotNull(service.getParameters(id));
ReportParameters params = service.getParameters(id);
assertEquals(7, params.getReportParms().size());
}
use of org.opennms.api.reporting.parameter.ReportParameters in project opennms by OpenNMS.
the class JasperReportServiceGetParametersTest method readPropertiesOfTrivialTestReportTest.
@Test
public void readPropertiesOfTrivialTestReportTest() throws ReportException {
String id = "trivial-report";
assertNotNull(service.getParameters(id));
ReportParameters params = service.getParameters(id);
assertEquals(0, params.getReportParms().size());
}
use of org.opennms.api.reporting.parameter.ReportParameters in project opennms by OpenNMS.
the class JasperReportServiceGetParametersTest method readPropertiesOfJasperUriTest.
@Test
public void readPropertiesOfJasperUriTest() throws ReportException {
String id = "REMOTE_jasper-uri-test";
assertNotNull(service.getParameters(id));
ReportParameters params = service.getParameters(id);
assertEquals(1, params.getReportParms().size());
}
Aggregations