urbanairship-core/src/test/java/com/urbanairship/push/PushManagerTest.java
@Test
    public void testMigrateQuietTimeEnabledAlreadySet() {
        preferenceDataStore.put(PushManager.QUIET_TIME_ENABLED, false);
        preferenceDataStore.put(PushManager.OLD_QUIET_TIME_ENABLED, true);

        // Verify quiet time is disabled
        assertFalse(pushManager.isQuietTimeEnabled());

        // Migrate the old setting
        pushManager.migrateQuietTimeSettings();

        // Verify quiet time is still disabled
        assertFalse(pushManager.isQuietTimeEnabled());
    }
/**
     * Test migrating quiet time enabled setting does not overwrite
     * the new setting if its set.
     */
Test migrating quiet time enabled setting does not overwrite
the new setting if its set.
Test migrating quiet time enabled setting does not overwrite the new setting if its set .
@Test
    public void testMigrateQuietTimeEnabledAlreadySet() {
        preferenceDataStore.put(PushManager.QUIET_TIME_ENABLED, false);
        preferenceDataStore.put(PushManager.OLD_QUIET_TIME_ENABLED, true);
        assertFalse(pushManager.isQuietTimeEnabled());
        pushManager.migrateQuietTimeSettings();
        assertFalse(pushManager.isQuietTimeEnabled());
    }
@ Test public void testMigrateQuietTimeEnabledAlreadySet ( ) { preferenceDataStore . put ( PushManager . QUIET_TIME_ENABLED , false ) ; preferenceDataStore . put ( PushManager . OLD_QUIET_TIME_ENABLED , true ) ; assertFalse ( pushManager . isQuietTimeEnabled ( ) ) ; pushManager . migrateQuietTimeSettings ( ) ; assertFalse ( pushManager . isQuietTimeEnabled ( ) ) ; }
Test migrating quiet time enabled setting does not overwrite
 the new setting if its set.
Test migrating quiet time enabled setting does not overwrite the new setting if its set .
// Verify quiet time is disabled // Migrate the old setting // Verify quiet time is still disabled