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

        // Perform the update
        JobInfo jobInfo = JobInfo.newBuilder().setAction(PushManagerJobHandler.ACTION_UPDATE_TAG_GROUPS).build();
        Assert.assertEquals(JobInfo.JOB_FINISHED, jobHandler.performJob(jobInfo));

        // Verify tag group registrar was not called
        verifyZeroInteractions(tagGroupRegistrar);
    }
/**
     * Test update tags without a channel ID fails.
     */
Test update tags without a channel ID fails.
Test update tags without a channel ID fails .
@Test
    public void testUpdateTagsNoChannel() {
        pushManager.setChannel(null, null);
        JobInfo jobInfo = JobInfo.newBuilder().setAction(PushManagerJobHandler.ACTION_UPDATE_TAG_GROUPS).build();
        Assert.assertEquals(JobInfo.JOB_FINISHED, jobHandler.performJob(jobInfo));
        verifyZeroInteractions(tagGroupRegistrar);
    }
@ Test public void testUpdateTagsNoChannel ( ) { pushManager . setChannel ( null , null ) ; JobInfo jobInfo = JobInfo . newBuilder ( ) . setAction ( PushManagerJobHandler . ACTION_UPDATE_TAG_GROUPS ) . build ( ) ; Assert . assertEquals ( JobInfo . JOB_FINISHED , jobHandler . performJob ( jobInfo ) ) ; verifyZeroInteractions ( tagGroupRegistrar ) ; }
Test update tags without a channel ID fails.
Test update tags without a channel ID fails .
// Set the channel // Perform the update // Verify tag group registrar was not called