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.utils; /* www . j a v a2 s . co m*/ import android.test.suitebuilder.annotation.SmallTest; import junit.framework.TestCase; import org.json.JSONObject; import java.util.HashMap; /** * Created by AGalkin * On 1/28/15. */ public class SEToolsTest extends TestCase { @SmallTest public void testParamsToString() throws Exception { HashMap<String, String> map = new HashMap<>(); map.put("one", "value_one"); map.put("two", "value_two"); map.put("three", "value_three"); map.put("four", "value_four"); assertEquals("?three=value_three&two=value_two&four=value_four&one=value_one", SETools.paramsToString(map)); } }