urbanairship-core/src/test/java/com/urbanairship/iam/tags/TagGroupManagerTest.java
@Test
    public void historianMaxRecordAge() {
        manager.setPreferLocalTagDataTime(10, TimeUnit.MILLISECONDS);
        manager.setCacheStaleReadTime(10, TimeUnit.MILLISECONDS);

        reset(mockHistorian);

        manager.setPreferLocalTagDataTime(20, TimeUnit.MILLISECONDS);
        verify(mockHistorian).setMaxRecordAge(30, TimeUnit.MILLISECONDS);

        manager.setCacheStaleReadTime(20, TimeUnit.MILLISECONDS);
        verify(mockHistorian).setMaxRecordAge(40, TimeUnit.MILLISECONDS);
    }
/**
     * Test setting local data time and cache stale read time updates the historians max record age.
     */
Test setting local data time and cache stale read time updates the historians max record age.
Test setting local data time and cache stale read time updates the historians max record age .
@Test
    public void historianMaxRecordAge() {
        manager.setPreferLocalTagDataTime(10, TimeUnit.MILLISECONDS);
        manager.setCacheStaleReadTime(10, TimeUnit.MILLISECONDS);
        reset(mockHistorian);
        manager.setPreferLocalTagDataTime(20, TimeUnit.MILLISECONDS);
        verify(mockHistorian).setMaxRecordAge(30, TimeUnit.MILLISECONDS);
        manager.setCacheStaleReadTime(20, TimeUnit.MILLISECONDS);
        verify(mockHistorian).setMaxRecordAge(40, TimeUnit.MILLISECONDS);
    }
@ Test public void historianMaxRecordAge ( ) { manager . setPreferLocalTagDataTime ( 10 , TimeUnit . MILLISECONDS ) ; manager . setCacheStaleReadTime ( 10 , TimeUnit . MILLISECONDS ) ; reset ( mockHistorian ) ; manager . setPreferLocalTagDataTime ( 20 , TimeUnit . MILLISECONDS ) ; verify ( mockHistorian ) . setMaxRecordAge ( 30 , TimeUnit . MILLISECONDS ) ; manager . setCacheStaleReadTime ( 20 , TimeUnit . MILLISECONDS ) ; verify ( mockHistorian ) . setMaxRecordAge ( 40 , TimeUnit . MILLISECONDS ) ; }
Test setting local data time and cache stale read time updates the historians max record age.
Test setting local data time and cache stale read time updates the historians max record age .