urbanairship-core/src/test/java/com/urbanairship/push/PushManagerTest.java
@Test
    public void testOptInAndroid() {
        TestApplication.getApplication().setPlatform(UAirship.ANDROID_PLATFORM);

        pushManager.setPushEnabled(true);
        pushManager.setUserNotificationsEnabled(true);
        pushManager.setRegistrationToken("fakeGcmId");
        pushManager.setPushTokenRegistrationEnabled(true);

        assertEquals("OptIn should be true", true, pushManager.isOptIn());
    }
/**
     * Test OptIn is true for Android
     */
Test OptIn is true for Android
Test OptIn is true for Android
@Test
    public void testOptInAndroid() {
        TestApplication.getApplication().setPlatform(UAirship.ANDROID_PLATFORM);
        pushManager.setPushEnabled(true);
        pushManager.setUserNotificationsEnabled(true);
        pushManager.setRegistrationToken("fakeGcmId");
        pushManager.setPushTokenRegistrationEnabled(true);
        assertEquals("OptIn should be true", true, pushManager.isOptIn());
    }
@ Test public void testOptInAndroid ( ) { TestApplication . getApplication ( ) . setPlatform ( UAirship . ANDROID_PLATFORM ) ; pushManager . setPushEnabled ( true ) ; pushManager . setUserNotificationsEnabled ( true ) ; pushManager . setRegistrationToken ( "fakeGcmId" ) ; pushManager . setPushTokenRegistrationEnabled ( true ) ; assertEquals ( "OptIn should be true" , true , pushManager . isOptIn ( ) ) ; }
Test OptIn is true for Android
Test OptIn is true for Android