mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestPowerManager.java
public void testWakeLockContext()
    {
        PowerManager powerManager = ServiceUtils.getService(m_Context, PowerManager.class);
        assertThat(powerManager, is(notNullValue()));
        
        // Create wake lock
        WakeLock testLock = powerManager.createWakeLock(TestPowerManager.class, "TestContextLockId");
        
        assertThat(testLock.getContext(), is((Object)TestPowerManager.class));
    }
/**
     * Verifies the WakeLock context is properly set.
     */
Verifies the WakeLock context is properly set.
Verifies the WakeLock context is properly set .
public void testWakeLockContext()
    {
        PowerManager powerManager = ServiceUtils.getService(m_Context, PowerManager.class);
        assertThat(powerManager, is(notNullValue()));
        WakeLock testLock = powerManager.createWakeLock(TestPowerManager.class, "TestContextLockId");
        assertThat(testLock.getContext(), is((Object)TestPowerManager.class));
    }
public void testWakeLockContext ( ) { PowerManager powerManager = ServiceUtils . getService ( m_Context , PowerManager . class ) ; assertThat ( powerManager , is ( notNullValue ( ) ) ) ; WakeLock testLock = powerManager . createWakeLock ( TestPowerManager . class , "TestContextLockId" ) ; assertThat ( testLock . getContext ( ) , is ( ( Object ) TestPowerManager . class ) ) ; }
Verifies the WakeLock context is properly set.
Verifies the WakeLock context is properly set .
// Create wake lock