urbanairship-core/src/test/java/com/urbanairship/push/PushManagerTest.java
@Test
    public void testInit() {
       pushManager.init();

        verify(mockDispatcher).dispatch(Mockito.argThat(new ArgumentMatcher<JobInfo>() {
            @Override
            public boolean matches(JobInfo jobInfo) {
                return jobInfo.getAction().equals(PushManagerJobHandler.ACTION_UPDATE_PUSH_REGISTRATION);
            }
        }));

        verifyNoMoreInteractions(mockDispatcher);
    }
/**
     * Test init starts push registration if the registration token is not available.
     */
Test init starts push registration if the registration token is not available.
Test init starts push registration if the registration token is not available .
@Test
    public void testInit() {
       pushManager.init();
        verify(mockDispatcher).dispatch(Mockito.argThat(new ArgumentMatcher<JobInfo>() {
            @Override
            public boolean matches(JobInfo jobInfo) {
                return jobInfo.getAction().equals(PushManagerJobHandler.ACTION_UPDATE_PUSH_REGISTRATION);
            }
        }));
        verifyNoMoreInteractions(mockDispatcher);
    }
@ Test public void testInit ( ) { pushManager . init ( ) ; verify ( mockDispatcher ) . dispatch ( Mockito . argThat ( new ArgumentMatcher < JobInfo > ( ) { @ Override public boolean matches ( JobInfo jobInfo ) { return jobInfo . getAction ( ) . equals ( PushManagerJobHandler . ACTION_UPDATE_PUSH_REGISTRATION ) ; } } ) ) ; verifyNoMoreInteractions ( mockDispatcher ) ; }
Test init starts push registration if the registration token is not available.
Test init starts push registration if the registration token is not available .