mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/pm/TestPowerManagerImpl.java
@Test
    public void testGetWakeLocksBySourceObject_OnlyContextLocks()
    {
        m_SUT.createWakeLock(TestContext1.class, "lock");
        
        FactoryObject sourceObject = mockFactoryObject();
        
        // make sure non-factory wake locks are ignored
        Set<WakeLock> returnedLocks = m_SUT.getWakeLocks(sourceObject, WakeLockState.Any);
        assertThat(returnedLocks.size(), is(0));
    }
/**
     * Verify there is no exception if finding wake locks by source object, but there are only non-factory object locks.
     */
Verify there is no exception if finding wake locks by source object, but there are only non-factory object locks.
Verify there is no exception if finding wake locks by source object but there are only non - factory object locks .
@Test
    public void testGetWakeLocksBySourceObject_OnlyContextLocks()
    {
        m_SUT.createWakeLock(TestContext1.class, "lock");
        FactoryObject sourceObject = mockFactoryObject();
        Set<WakeLock> returnedLocks = m_SUT.getWakeLocks(sourceObject, WakeLockState.Any);
        assertThat(returnedLocks.size(), is(0));
    }
@ Test public void testGetWakeLocksBySourceObject_OnlyContextLocks ( ) { m_SUT . createWakeLock ( TestContext1 . class , "lock" ) ; FactoryObject sourceObject = mockFactoryObject ( ) ; Set < WakeLock > returnedLocks = m_SUT . getWakeLocks ( sourceObject , WakeLockState . Any ) ; assertThat ( returnedLocks . size ( ) , is ( 0 ) ) ; }
Verify there is no exception if finding wake locks by source object, but there are only non-factory object locks.
Verify there is no exception if finding wake locks by source object but there are only non - factory object locks .
// make sure non-factory wake locks are ignored