mil.dod.th.ose.shell/test/mil/dod/th/ose/shell/TestPowerManagerCommands.java
@Test
    public void testGetAnyWakeLocks()
    {
        Set<WakeLock> anyLocks = m_SUT.getWakeLocks("Any");
        assertThat(anyLocks.size(), is(4));
        
        List<String> lockIds = new ArrayList<>();
        lockIds.add("activeLock1");
        lockIds.add("activeLock2");
        lockIds.add("schedLock");
        lockIds.add("inactiveLock");
        
        verifyLocks(lockIds, anyLocks);
    }
/**
     * Verify that all locks are returned.
     */
Verify that all locks are returned.
Verify that all locks are returned .
@Test
    public void testGetAnyWakeLocks()
    {
        Set<WakeLock> anyLocks = m_SUT.getWakeLocks("Any");
        assertThat(anyLocks.size(), is(4));
        List<String> lockIds = new ArrayList<>();
        lockIds.add("activeLock1");
        lockIds.add("activeLock2");
        lockIds.add("schedLock");
        lockIds.add("inactiveLock");
        verifyLocks(lockIds, anyLocks);
    }
@ Test public void testGetAnyWakeLocks ( ) { Set < WakeLock > anyLocks = m_SUT . getWakeLocks ( "Any" ) ; assertThat ( anyLocks . size ( ) , is ( 4 ) ) ; List < String > lockIds = new ArrayList < > ( ) ; lockIds . add ( "activeLock1" ) ; lockIds . add ( "activeLock2" ) ; lockIds . add ( "schedLock" ) ; lockIds . add ( "inactiveLock" ) ; verifyLocks ( lockIds , anyLocks ) ; }
Verify that all locks are returned.
Verify that all locks are returned .