diff options
author | Koushik Dutta <koushd@gmail.com> | 2014-04-05 11:24:53 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2014-04-05 11:24:53 -0700 |
commit | 56b4989816d1dedd61feeed0050c2806885ee97a (patch) | |
tree | 55584f28c1bf7b8406922230b19f3fb69720716e /AndroidAsyncTest/src/com/koushikdutta/async/test/BodyTests.java | |
parent | 7b6fe660a02bc11a1260683be0590fd419392df0 (diff) | |
download | AndroidAsync-56b4989816d1dedd61feeed0050c2806885ee97a.tar.gz AndroidAsync-56b4989816d1dedd61feeed0050c2806885ee97a.tar.bz2 AndroidAsync-56b4989816d1dedd61feeed0050c2806885ee97a.zip |
fixup tests.
Diffstat (limited to 'AndroidAsyncTest/src/com/koushikdutta/async/test/BodyTests.java')
-rw-r--r-- | AndroidAsyncTest/src/com/koushikdutta/async/test/BodyTests.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/AndroidAsyncTest/src/com/koushikdutta/async/test/BodyTests.java b/AndroidAsyncTest/src/com/koushikdutta/async/test/BodyTests.java new file mode 100644 index 0000000..e803849 --- /dev/null +++ b/AndroidAsyncTest/src/com/koushikdutta/async/test/BodyTests.java @@ -0,0 +1,19 @@ +package com.koushikdutta.async.test; + +import android.test.AndroidTestCase; + +import com.koushikdutta.async.http.Multimap; +import com.koushikdutta.async.http.body.UrlEncodedFormBody; + +/** + * Created by koush on 3/19/14. + */ +public class BodyTests extends AndroidTestCase { + public void testNullValue() throws Exception { + Multimap mm = new Multimap(); + mm.add("hello", null); + UrlEncodedFormBody body = new UrlEncodedFormBody(mm); + + int length = body.length(); + } +} |