Back to project page js-android-sdk.
The source code is released under:
GNU Lesser General Public License
If you think the Android project js-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jaspersoft.android.sdk.integration; // w ww . j a v a2s .c om import android.test.suitebuilder.annotation.LargeTest; import com.jaspersoft.android.sdk.client.async.request.RunReportExecutionRequest; import com.jaspersoft.android.sdk.client.async.request.RunReportExportOutputRequest; import com.jaspersoft.android.sdk.client.async.request.RunReportExportsRequest; import com.jaspersoft.android.sdk.client.oxm.report.ExportExecution; import com.jaspersoft.android.sdk.client.oxm.report.ExportsRequest; import com.jaspersoft.android.sdk.client.oxm.report.ReportDataResponse; import com.jaspersoft.android.sdk.client.oxm.report.ReportExecutionRequest; import com.jaspersoft.android.sdk.client.oxm.report.ReportExecutionResponse; import com.jaspersoft.android.sdk.integration.utils.ProtoInstrumentation; import com.jaspersoft.android.sdk.integration.utils.SampleData; /** * @author Tom Koptel * @since 1.9 */ @LargeTest public class RunReportExportsRequestTest extends ProtoInstrumentation { private RunReportExecutionRequest runReportExecutionRequest; @Override protected void setUp() throws Exception { super.setUp(); ReportExecutionRequest reportExecutionRequest = SampleData.getSampleExecutionData(getJsRestClient(), RESOURCE_URI); runReportExecutionRequest = new RunReportExecutionRequest(getJsRestClient(), reportExecutionRequest); } public void test_requestForExportsOnReport() throws Exception { ReportExecutionResponse runReportExecutionResponse = runReportExecutionRequest.loadDataFromNetwork(); String requestId = runReportExecutionResponse.getRequestId(); ExportsRequest exr = new ExportsRequest(); // exr.configureExecutionForProfile(getJsRestClient()); exr.setMarkupType(ReportExecutionRequest.MARKUP_TYPE_EMBEDDABLE); exr.setAllowInlineScripts(false); exr.setOutputFormat("html"); exr.setPages("1"); RunReportExportsRequest runReportExportsRequest = new RunReportExportsRequest(getJsRestClient(), exr, requestId); ExportExecution runReportExportsResponse = runReportExportsRequest.loadDataFromNetwork(); assertFalse(runReportExportsResponse == null); String executionId = runReportExportsResponse.getId(); RunReportExportOutputRequest runReportExportOutputRequest = new RunReportExportOutputRequest(getJsRestClient(), requestId, executionId); ReportDataResponse response = runReportExportOutputRequest.loadDataFromNetwork(); assertFalse(response == null); } }