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.utils; /*from w w w. j a va2 s .co m*/ import android.test.InstrumentationTestCase; import com.jaspersoft.android.sdk.client.JsRestClient; import com.jaspersoft.android.sdk.client.JsServerProfile; /** * @author Tom Koptel * @since 1.9 */ public abstract class ProtoInstrumentation extends InstrumentationTestCase { private static final String DEFAULT_ALIAS = "Mobile Demo"; private static final String DEFAULT_ORGANIZATION = "organization_1"; private static final String DEFAULT_SERVER_URL = "http://mobiledemo.jaspersoft.com/jasperserver-pro"; private static final String DEFAULT_USERNAME = "phoneuser"; private static final String DEFAULT_PASS = "phoneuser"; public static final String RESOURCE_URI = "/Reports/1._Geographic_Results_by_Segment_Report"; private JsServerProfile testProfile; private JsRestClient jsRestClient; @Override protected void setUp() throws Exception { super.setUp(); testProfile = new JsServerProfile(); testProfile.setAlias(DEFAULT_ALIAS); testProfile.setServerUrl(DEFAULT_SERVER_URL); testProfile.setOrganization(DEFAULT_ORGANIZATION); testProfile.setUsername(DEFAULT_USERNAME); testProfile.setPassword(DEFAULT_PASS); jsRestClient = new JsRestClient(); jsRestClient.setServerProfile(testProfile); } @Override protected void tearDown() throws Exception { super.tearDown(); testProfile = null; jsRestClient = null; } public JsServerProfile getTestProfile() { return testProfile; } public JsRestClient getJsRestClient() { return jsRestClient; } }