@Test @TestOrder(order = 130) public void testGetDeviceTagAlias_cleard() throws Exception { TagAliasResult result = jpushClient.getDeviceTagAlias(REGISTRATION_ID1); assertTrue(result.isResultOK()); assertEquals("alias cleared", null, result.alias); assertEquals("tags cleared", 0, result.tags.size()); }
@Test @TestOrder(order = 110) public void testGetDeviceTagAlias_1() throws Exception { TagAliasResult result = jpushClient.getDeviceTagAlias(REGISTRATION_ID1); assertTrue(result.isResultOK()); assertEquals("alias not equals", "alias1", result.alias); assertTrue("tag contains", result.tags.contains("tag1")); assertTrue("tag contains", result.tags.contains("tag2")); assertFalse("tag not contains", result.tags.contains("tag3")); assertFalse("tag not contains", result.tags.contains("tag4")); }