mil.dod.th.ose.shell/test/mil/dod/th/ose/shell/TestPowerManagerCommands.java
private void verifyLocks(List<String> lockIds, Set<WakeLock> foundLocks)
    {
        int foundCount = 0;
        for (WakeLock foundLock : foundLocks)
        {
            if (lockIds.contains(foundLock.getId()))
            {
                foundCount++;
            }
        }
        
        assertThat(foundCount, is(lockIds.size()));
    }
/**
     * Method used to verify that a list of given locks contains the expected ones.
     * @param lockIds
     *  list of lock ids that are expected to be in the list of foundLocks
     * @param foundLocks
     *  list of the given locks
     */
Method used to verify that a list of given locks contains the expected ones.
@param lockIds
list of lock ids that are expected to be in the list of foundLocks
@param foundLocks
list of the given locks
Method used to verify that a list of given locks contains the expected ones . @param lockIds list of lock ids that are expected to be in the list of foundLocks @param foundLocks list of the given locks
private void verifyLocks(List<String> lockIds, Set<WakeLock> foundLocks)
    {
        int foundCount = 0;
        for (WakeLock foundLock : foundLocks)
        {
            if (lockIds.contains(foundLock.getId()))
            {
                foundCount++;
            }
        }
        assertThat(foundCount, is(lockIds.size()));
    }
private void verifyLocks ( List < String > lockIds , Set < WakeLock > foundLocks ) { int foundCount = 0 ; for ( WakeLock foundLock : foundLocks ) { if ( lockIds . contains ( foundLock . getId ( ) ) ) { foundCount ++ ; } } assertThat ( foundCount , is ( lockIds . size ( ) ) ) ; }
Method used to verify that a list of given locks contains the expected ones.
Method used to verify that a list of given locks contains the expected ones .