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