urbanairship-core/src/test/java/com/urbanairship/push/PushManagerJobHandlerTest.java
@Test
    public void testUpdateNamedUserTagsSucceed() {
        // Set the channel
        pushManager.setChannel(fakeChannelId, fakeChannelLocation);

        when(tagGroupRegistrar.uploadMutations(TagGroupRegistrar.CHANNEL, fakeChannelId)).thenReturn(true);

        // Perform the update
        JobInfo jobInfo = JobInfo.newBuilder().setAction(PushManagerJobHandler.ACTION_UPDATE_TAG_GROUPS).build();
        Assert.assertEquals(JobInfo.JOB_FINISHED, jobHandler.performJob(jobInfo));
    }
/**
     * Test update named user tags succeeds when the registrar returns true.
     */
Test update named user tags succeeds when the registrar returns true.
Test update named user tags succeeds when the registrar returns true .
@Test
    public void testUpdateNamedUserTagsSucceed() {
        pushManager.setChannel(fakeChannelId, fakeChannelLocation);
        when(tagGroupRegistrar.uploadMutations(TagGroupRegistrar.CHANNEL, fakeChannelId)).thenReturn(true);
        JobInfo jobInfo = JobInfo.newBuilder().setAction(PushManagerJobHandler.ACTION_UPDATE_TAG_GROUPS).build();
        Assert.assertEquals(JobInfo.JOB_FINISHED, jobHandler.performJob(jobInfo));
    }
@ Test public void testUpdateNamedUserTagsSucceed ( ) { pushManager . setChannel ( fakeChannelId , fakeChannelLocation ) ; when ( tagGroupRegistrar . uploadMutations ( TagGroupRegistrar . CHANNEL , fakeChannelId ) ) . thenReturn ( true ) ; JobInfo jobInfo = JobInfo . newBuilder ( ) . setAction ( PushManagerJobHandler . ACTION_UPDATE_TAG_GROUPS ) . build ( ) ; Assert . assertEquals ( JobInfo . JOB_FINISHED , jobHandler . performJob ( jobInfo ) ) ; }
Test update named user tags succeeds when the registrar returns true.
Test update named user tags succeeds when the registrar returns true .
// Set the channel // Perform the update