Skip to content

Commit

Permalink
[MOB-10364] Update according to new discussiom
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeruchat committed Jan 10, 2025
1 parent 4f2301a commit fc9253f
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public void testJsonOnlyMessageDisplay() throws Exception {
.put("inAppMessages", new JSONArray()
.put(new JSONObject()
.put("saveToInbox", false)
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("customPayload", new JSONObject().put("key", "never"))
.put("trigger", new JSONObject().put("type", "never"))
.put("messageId", "message1")));
Expand Down Expand Up @@ -480,7 +480,7 @@ public void testJsonOnlyMessageInboxBehavior() throws Exception {
.put("inAppMessages", new JSONArray()
.put(new JSONObject()
.put("saveToInbox", true)
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("customPayload", new JSONObject()
.put("key", "value"))
.put("inboxMetadata", new JSONObject()
Expand All @@ -505,7 +505,7 @@ public void testJsonOnlyMessageContentBehavior() throws Exception {
JSONObject payload = new JSONObject()
.put("inAppMessages", new JSONArray()
.put(new JSONObject()
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("customPayload", new JSONObject()
.put("key", "customValue"))
.put("content", new JSONObject()
Expand Down Expand Up @@ -537,7 +537,7 @@ public void testJsonOnlyInAppMessageParsing() throws Exception {
.put("inAppMessages", new JSONArray()
.put(new JSONObject()
.put("saveToInbox", false)
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("messageType", "Mobile")
.put("typeOfContent", "Static")
.put("customPayload", new JSONObject()
Expand Down Expand Up @@ -569,13 +569,13 @@ public void testJsonOnlyInAppMessageDelegateCallbacks() throws Exception {
.put("inAppMessages", new JSONArray()
.put(new JSONObject()
.put("saveToInbox", false)
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("customPayload", new JSONObject().put("key", "immediate"))
.put("trigger", new JSONObject().put("type", "immediate"))
.put("messageId", "message1"))
.put(new JSONObject()
.put("saveToInbox", false)
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("customPayload", new JSONObject().put("key", "never"))
.put("trigger", new JSONObject().put("type", "never"))
.put("messageId", "message2")));
Expand Down Expand Up @@ -618,7 +618,7 @@ public void testJsonOnlyInAppMessageWithoutCustomPayload() throws Exception {
.put("inAppMessages", new JSONArray()
.put(new JSONObject()
.put("saveToInbox", false)
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("messageType", "Mobile")
.put("trigger", new JSONObject().put("type", "never"))
.put("messageId", "message1")
Expand All @@ -645,7 +645,7 @@ public void testJsonOnlyMessageWithEmptyPayload() throws Exception {
.put("inAppMessages", new JSONArray()
.put(new JSONObject()
.put("saveToInbox", false)
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("customPayload", new JSONObject())
.put("trigger", new JSONObject().put("type", "never"))
.put("messageId", "message1")));
Expand All @@ -667,7 +667,7 @@ public void testJsonOnlyMessageCannotBeSavedToInbox() throws Exception {
.put("inAppMessages", new JSONArray()
.put(new JSONObject()
.put("saveToInbox", true)
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("customPayload", new JSONObject().put("key", "value"))
.put("trigger", new JSONObject().put("type", "never"))
.put("messageId", "message1")
Expand All @@ -692,7 +692,7 @@ public void testJsonOnlyMessageIgnoresContentPayload() throws Exception {
.put("inAppMessages", new JSONArray()
.put(new JSONObject()
.put("saveToInbox", false)
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("customPayload", new JSONObject()
.put("key", "customValue"))
.put("content", new JSONObject()
Expand All @@ -719,7 +719,7 @@ public void testJsonOnlyInAppMessageProcessingAndDisplay() throws Exception {
.put("inAppMessages", new JSONArray()
.put(new JSONObject()
.put("saveToInbox", false)
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("customPayload", new JSONObject()
.put("key", "value"))
.put("content", new JSONObject()
Expand Down Expand Up @@ -776,13 +776,13 @@ private String createJsonOnlyPayload() throws JSONException {
.put("inAppMessages", new JSONArray()
.put(new JSONObject() // Immediate trigger
.put("saveToInbox", false)
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("customPayload", new JSONObject().put("key", "immediate"))
.put("trigger", new JSONObject().put("type", "immediate"))
.put("messageId", "message1"))
.put(new JSONObject() // Never trigger
.put("saveToInbox", false)
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("customPayload", new JSONObject().put("key", "never"))
.put("trigger", new JSONObject().put("type", "never"))
.put("messageId", "message2")))
Expand All @@ -804,7 +804,7 @@ public void testJsonOnlyMessageConsume() throws Exception {
.put("inAppMessages", new JSONArray()
.put(new JSONObject()
.put("saveToInbox", false)
.put("jsonOnly", 1)
.put("jsonOnly", true)
.put("customPayload", new JSONObject().put("key", "value"))
.put("trigger", new JSONObject().put("type", "immediate"))
.put("messageId", "message1")));
Expand Down

0 comments on commit fc9253f

Please sign in to comment.