mil.dod.th.ose.shell/test/mil/dod/th/ose/shell/TestPowerManagerCommands.java
@Test
    public void testDeactivate()
    {
        WakeLock shellLock = mockWakeLock("shellWakeLock");
        when(m_PowerManager.createWakeLock(m_SUT.getClass(), "shellWakeLock")).thenReturn(shellLock);
        m_SUT.activate();
      
        m_SUT.deactivate();
        verify(shellLock, times(1)).delete();
    }
/**
     * Verify that the shell wake lock is deleted.
     */
Verify that the shell wake lock is deleted.
Verify that the shell wake lock is deleted .
@Test
    public void testDeactivate()
    {
        WakeLock shellLock = mockWakeLock("shellWakeLock");
        when(m_PowerManager.createWakeLock(m_SUT.getClass(), "shellWakeLock")).thenReturn(shellLock);
        m_SUT.activate();
        m_SUT.deactivate();
        verify(shellLock, times(1)).delete();
    }
@ Test public void testDeactivate ( ) { WakeLock shellLock = mockWakeLock ( "shellWakeLock" ) ; when ( m_PowerManager . createWakeLock ( m_SUT . getClass ( ) , "shellWakeLock" ) ) . thenReturn ( shellLock ) ; m_SUT . activate ( ) ; m_SUT . deactivate ( ) ; verify ( shellLock , times ( 1 ) ) . delete ( ) ; }
Verify that the shell wake lock is deleted.
Verify that the shell wake lock is deleted .