urbanairship-core/src/test/java/com/urbanairship/push/PushManagerTest.java
@Test
    public void testStartUpdateChannelTagService() {
        pushManager.setChannel(fakeChannelId, fakeChannelLocation);

        pushManager.editTagGroups()
                   .addTags("tagGroup", tagsToAdd)
                   .removeTags("tagGroup", tagsToRemove)
                   .apply();

        verify(mockDispatcher).dispatch(Mockito.argThat(new ArgumentMatcher<JobInfo>() {
            @Override
            public boolean matches(JobInfo jobInfo) {
                return jobInfo.getAction().equals(PushManagerJobHandler.ACTION_UPDATE_TAG_GROUPS) &&
                        jobInfo.getAirshipComponentName().equals(PushManager.class.getName());
            }
        }));
    }
/**
     * Test editTagGroups apply dispatches a job to update the tag groups.
     */
Test editTagGroups apply dispatches a job to update the tag groups.
Test editTagGroups apply dispatches a job to update the tag groups .
@Test
    public void testStartUpdateChannelTagService() {
        pushManager.setChannel(fakeChannelId, fakeChannelLocation);
        pushManager.editTagGroups()
                   .addTags("tagGroup", tagsToAdd)
                   .removeTags("tagGroup", tagsToRemove)
                   .apply();
        verify(mockDispatcher).dispatch(Mockito.argThat(new ArgumentMatcher<JobInfo>() {
            @Override
            public boolean matches(JobInfo jobInfo) {
                return jobInfo.getAction().equals(PushManagerJobHandler.ACTION_UPDATE_TAG_GROUPS) &&
                        jobInfo.getAirshipComponentName().equals(PushManager.class.getName());
            }
        }));
    }
@ Test public void testStartUpdateChannelTagService ( ) { pushManager . setChannel ( fakeChannelId , fakeChannelLocation ) ; pushManager . editTagGroups ( ) . addTags ( "tagGroup" , tagsToAdd ) . removeTags ( "tagGroup" , tagsToRemove ) . apply ( ) ; verify ( mockDispatcher ) . dispatch ( Mockito . argThat ( new ArgumentMatcher < JobInfo > ( ) { @ Override public boolean matches ( JobInfo jobInfo ) { return jobInfo . getAction ( ) . equals ( PushManagerJobHandler . ACTION_UPDATE_TAG_GROUPS ) && jobInfo . getAirshipComponentName ( ) . equals ( PushManager . class . getName ( ) ) ; } } ) ) ; }
Test editTagGroups apply dispatches a job to update the tag groups.
Test editTagGroups apply dispatches a job to update the tag groups .