urbanairship-core/src/test/java/com/urbanairship/push/PushManagerTest.java
@Test
    public void testOptInPushDisabled() {
        pushManager.setPushEnabled(false);
        pushManager.setRegistrationToken("fakeGcmId");

        assertEquals("OptIn should be false", false, pushManager.isOptIn());
    }
/**
     * Test OptIn is false when push is disabled
     */
Test OptIn is false when push is disabled
Test OptIn is false when push is disabled
@Test
    public void testOptInPushDisabled() {
        pushManager.setPushEnabled(false);
        pushManager.setRegistrationToken("fakeGcmId");
        assertEquals("OptIn should be false", false, pushManager.isOptIn());
    }
@ Test public void testOptInPushDisabled ( ) { pushManager . setPushEnabled ( false ) ; pushManager . setRegistrationToken ( "fakeGcmId" ) ; assertEquals ( "OptIn should be false" , false , pushManager . isOptIn ( ) ) ; }
Test OptIn is false when push is disabled
Test OptIn is false when push is disabled