mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/pm/TestWakeLockImpl.java
@Test
    public void testActivateWakeLock()
    {
        ArgumentCaptor<Long> stopTimeCapture = ArgumentCaptor.forClass(Long.class);

        m_SUT.activate();

        verify(m_PPM).activateWakeLock(eq(m_SUT), anyLong(), stopTimeCapture.capture());
        assertThat(stopTimeCapture.getValue(), is(PlatformPowerManager.INDEFINITE));
    }
/**
     * Test method for {@link WakeLockImpl#activate()} when {@link PlatformPowerManager} is available.
     */
Test method for  WakeLockImpl#activate() when  PlatformPowerManager is available.
Test method for WakeLockImpl#activate () when PlatformPowerManager is available .
@Test
    public void testActivateWakeLock()
    {
        ArgumentCaptor<Long> stopTimeCapture = ArgumentCaptor.forClass(Long.class);
        m_SUT.activate();
        verify(m_PPM).activateWakeLock(eq(m_SUT), anyLong(), stopTimeCapture.capture());
        assertThat(stopTimeCapture.getValue(), is(PlatformPowerManager.INDEFINITE));
    }
@ Test public void testActivateWakeLock ( ) { ArgumentCaptor < Long > stopTimeCapture = ArgumentCaptor . forClass ( Long . class ) ; m_SUT . activate ( ) ; verify ( m_PPM ) . activateWakeLock ( eq ( m_SUT ) , anyLong ( ) , stopTimeCapture . capture ( ) ) ; assertThat ( stopTimeCapture . getValue ( ) , is ( PlatformPowerManager . INDEFINITE ) ) ; }
Test method for {@link WakeLockImpl#activate()} when {@link PlatformPowerManager} is available.
Test method for { @link WakeLockImpl#activate () } when { @link PlatformPowerManager } is available .