コード例 #1
0
 @Test
 @TestOrder(order = 203)
 public void testAddRemoveDevicesFromTag() throws APIConnectionException, APIRequestException {
   Set<String> toAddUsers = new HashSet<String>();
   toAddUsers.add(REGISTRATION_ID1);
   Set<String> toRemoveUsers = new HashSet<String>();
   toRemoveUsers.add(REGISTRATION_ID2);
   DefaultResult result = jpushClient.addRemoveDevicesFromTag("tag3", toAddUsers, toRemoveUsers);
   assertTrue(result.isResultOK());
 }
コード例 #2
0
 @Test
 @TestOrder(order = 100)
 public void testUpdateDeviceTagAlias_add_remove_tags()
     throws APIConnectionException, APIRequestException {
   Set<String> tagsToAdd = new HashSet<String>();
   tagsToAdd.add("tag1");
   tagsToAdd.add("tag2");
   Set<String> tagsToRemove = new HashSet<String>();
   tagsToRemove.add("tag3");
   tagsToRemove.add("tag4");
   DefaultResult result =
       jpushClient.updateDeviceTagAlias(REGISTRATION_ID1, "alias1", tagsToAdd, tagsToRemove);
   assertTrue(result.isResultOK());
 }
コード例 #3
0
 @Test
 @TestOrder(order = 120)
 public void testUpdateDeviceTagAlias_clear() throws APIConnectionException, APIRequestException {
   DefaultResult result = jpushClient.updateDeviceTagAlias(REGISTRATION_ID1, true, true);
   assertTrue(result.isResultOK());
 }
コード例 #4
0
 @Test
 @TestOrder(order = 362)
 public void testBindMobile_empty() throws APIConnectionException, APIRequestException {
   DefaultResult result = jpushClient.bindMobile(REGISTRATION_ID1, "");
   assertTrue(result.isResultOK());
 }
コード例 #5
0
 @Test
 @TestOrder(order = 330)
 public void testDeleteAlias_2() throws APIConnectionException, APIRequestException {
   DefaultResult result = jpushClient.deleteAlias("alias2", null);
   assertTrue(result.isResultOK());
 }
コード例 #6
0
 @Test
 @TestOrder(order = 260)
 public void testDeletetag2() throws APIConnectionException, APIRequestException {
   DefaultResult result = jpushClient.deleteTag("tag3", null);
   assertTrue(result.isResultOK());
 }