Back to project page saltedge-android.
The source code is released under:
MIT License
If you think the Android project saltedge-android 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.saltedge.sdk.params; /*from ww w. j ava 2 s .c om*/ import android.test.suitebuilder.annotation.SmallTest; import junit.framework.TestCase; /** * Created by AGalkin * On 1/28/15. */ public class SECreateTokenParamsTest extends TestCase { @SmallTest public void testCreateTokenToJson() throws Exception { SECreateTokenParams params = new SECreateTokenParams("US", "USD", "http://back", "customerId"); String stringParams = "{\"data\":{\"country_code\":\"US\",\"customer_id\":\"customerId\",\"provider_code\":\"USD\",\"return_to\":\"http://back\"}}"; assertEquals(stringParams, params.toJson().toString()); } }