mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestPowerManager.java
public void testWakeLockId()
    {
        PowerManager powerManager = ServiceUtils.getService(m_Context, PowerManager.class);
        assertThat(powerManager, is(notNullValue()));
        
        // Create wake lock
        WakeLock testLock = powerManager.createWakeLock(TestPowerManager.class, "TestCreatedLockId");
        
        assertThat(testLock.getId(), is("TestCreatedLockId"));
    }
/** 
     * Verifies the WakeLock ID property is correctly set.
     */
Verifies the WakeLock ID property is correctly set.
Verifies the WakeLock ID property is correctly set .
public void testWakeLockId()
    {
        PowerManager powerManager = ServiceUtils.getService(m_Context, PowerManager.class);
        assertThat(powerManager, is(notNullValue()));
        WakeLock testLock = powerManager.createWakeLock(TestPowerManager.class, "TestCreatedLockId");
        assertThat(testLock.getId(), is("TestCreatedLockId"));
    }
public void testWakeLockId ( ) { PowerManager powerManager = ServiceUtils . getService ( m_Context , PowerManager . class ) ; assertThat ( powerManager , is ( notNullValue ( ) ) ) ; WakeLock testLock = powerManager . createWakeLock ( TestPowerManager . class , "TestCreatedLockId" ) ; assertThat ( testLock . getId ( ) , is ( "TestCreatedLockId" ) ) ; }
Verifies the WakeLock ID property is correctly set.
Verifies the WakeLock ID property is correctly set .
// Create wake lock