|
11 | 11 | import org.json.JSONArray; |
12 | 12 | import org.json.JSONObject; |
13 | 13 | import org.junit.Test; |
14 | | -import org.skyscreamer.jsonassert.JSONCompareMode; |
15 | 14 |
|
16 | 15 | import java.io.ByteArrayInputStream; |
17 | 16 | import java.io.IOException; |
|
31 | 30 | import static org.mockito.Mockito.times; |
32 | 31 | import static org.mockito.Mockito.verify; |
33 | 32 | import static org.mockito.Mockito.when; |
34 | | -import static org.skyscreamer.jsonassert.JSONAssert.assertEquals; |
35 | 33 |
|
36 | 34 | public class ParseCloudCodeControllerTest { |
37 | 35 |
|
@@ -59,21 +57,6 @@ public void testConvertCloudResponseNullResponse() throws Exception { |
59 | 57 | assertNull(result); |
60 | 58 | } |
61 | 59 |
|
62 | | - @Test |
63 | | - public void testConvertCloudResponseJsonResponseWithoutResultField() throws Exception { |
64 | | - ParseHttpClient restClient = mock(ParseHttpClient.class); |
65 | | - ParseCloudCodeController controller = new ParseCloudCodeController(restClient); |
66 | | - JSONObject response = new JSONObject(); |
67 | | - response.put("foo", "bar"); |
68 | | - response.put("yarr", 1); |
69 | | - |
70 | | - Object result = controller.convertCloudResponse(response); |
71 | | - |
72 | | - assertThat(result, instanceOf(JSONObject.class)); |
73 | | - JSONObject jsonResult = (JSONObject)result; |
74 | | - assertEquals(response, jsonResult, JSONCompareMode.NON_EXTENSIBLE); |
75 | | - } |
76 | | - |
77 | 60 | @Test |
78 | 61 | public void testConvertCloudResponseJsonResponseWithResultField() throws Exception { |
79 | 62 | ParseHttpClient restClient = mock(ParseHttpClient.class); |
|
0 commit comments