Skip to content

Commit 181c263

Browse files
committed
fix test bug
1 parent cbae121 commit 181c263

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/test/java/cn/jpush/api/push/model/notification/IosNotificationTest.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -151,22 +151,6 @@ public void testCategory() {
151151
assertThat(ios.toJSON(), is((JsonElement) json));
152152
}
153153

154-
@Test
155-
public void testAlertJson() {
156-
157-
IosNotification ios = IosNotification.alert("{\"title\":\"Game Request\",\"body\":\"Bob wants to play poker\",\"action-loc-key\":\"PLAY\" }");
158-
159-
JsonObject json = new JsonObject();
160-
JsonObject alert = new JsonObject();
161-
alert.add("title", new JsonPrimitive("Game Request"));
162-
alert.add("body", new JsonPrimitive("Bob wants to play poker"));
163-
alert.add("action-loc-key", new JsonPrimitive("PLAY"));
164-
165-
json.add("alert", alert);
166-
json.add("sound", new JsonPrimitive(""));
167-
json.add("badge", new JsonPrimitive("+1"));
168-
assertEquals("", json, ios.toJSON());
169-
}
170154
}
171155

172156

0 commit comments

Comments
 (0)