File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
WordPressUtils/src/androidTest/java/org/wordpress/android/util Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ package org .wordpress .android .util ;
2+
3+ import android .test .InstrumentationTestCase ;
4+
5+ import org .json .JSONArray ;
6+ import org .json .JSONObject ;
7+
8+ public class JSONUtilsTest extends InstrumentationTestCase {
9+ public void testQueryJSONNullSource1 () {
10+ JSONUtils .queryJSON ((JSONObject ) null , "" , "" );
11+ }
12+
13+ public void testQueryJSONNullSource2 () {
14+ JSONUtils .queryJSON ((JSONArray ) null , "" , "" );
15+ }
16+
17+ public void testQueryJSONNullQuery1 () {
18+ JSONUtils .queryJSON (new JSONObject (), null , "" );
19+ }
20+
21+ public void testQueryJSONNullQuery2 () {
22+ JSONUtils .queryJSON (new JSONArray (), null , "" );
23+ }
24+
25+ public void testQueryJSONNullReturnValue1 () {
26+ JSONUtils .queryJSON (new JSONObject (), "" , null );
27+ }
28+
29+ public void testQueryJSONNullReturnValue2 () {
30+ JSONUtils .queryJSON (new JSONArray (), "" , null );
31+ }
32+ }
You can’t perform that action at this time.
0 commit comments