urbanairship-core/src/test/java/com/urbanairship/push/PushManagerTest.java
@Test
    public void testInitUpdateChannelTags() {
        pushManager.setChannel(fakeChannelId, fakeChannelLocation);
        preferenceDataStore.put(PushManager.PUSH_ENABLED_SETTINGS_MIGRATED_KEY, true);
        pushManager.init();

        verify(mockDispatcher).dispatch(Mockito.argThat(new ArgumentMatcher<JobInfo>() {
            @Override
            public boolean matches(JobInfo jobInfo) {
                return jobInfo.getAction().equals(PushManagerJobHandler.ACTION_UPDATE_TAG_GROUPS);
            }
        }));
    }
/**
     * Test init update channel tags.
     */
Test init update channel tags.
Test init update channel tags .
@Test
    public void testInitUpdateChannelTags() {
        pushManager.setChannel(fakeChannelId, fakeChannelLocation);
        preferenceDataStore.put(PushManager.PUSH_ENABLED_SETTINGS_MIGRATED_KEY, true);
        pushManager.init();
        verify(mockDispatcher).dispatch(Mockito.argThat(new ArgumentMatcher<JobInfo>() {
            @Override
            public boolean matches(JobInfo jobInfo) {
                return jobInfo.getAction().equals(PushManagerJobHandler.ACTION_UPDATE_TAG_GROUPS);
            }
        }));
    }
@ Test public void testInitUpdateChannelTags ( ) { pushManager . setChannel ( fakeChannelId , fakeChannelLocation ) ; preferenceDataStore . put ( PushManager . PUSH_ENABLED_SETTINGS_MIGRATED_KEY , true ) ; pushManager . init ( ) ; verify ( mockDispatcher ) . dispatch ( Mockito . argThat ( new ArgumentMatcher < JobInfo > ( ) { @ Override public boolean matches ( JobInfo jobInfo ) { return jobInfo . getAction ( ) . equals ( PushManagerJobHandler . ACTION_UPDATE_TAG_GROUPS ) ; } } ) ) ; }
Test init update channel tags.
Test init update channel tags .