mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/pm/TestWakeLockImpl.java
@Test
    public void testActivateWakeLockLongTimeUnitNegDuration()
    {
        try
        {
            m_SUT.activate(-1, TimeUnit.MILLISECONDS);
            fail("Exception not thrown for a negative duration");
        }
        catch (IllegalArgumentException e)
        {
            // Expected
        }
    }
/**
     * Test method for {@link WakeLockImpl#activate(long, java.util.concurrent.TimeUnit)} when
     * a negative duration is provided.
     */
Test method for  WakeLockImpl#activate(long, java.util.concurrent.TimeUnit) when
a negative duration is provided.
Test method for WakeLockImpl#activate ( long java . util . concurrent . TimeUnit ) when a negative duration is provided .
@Test
    public void testActivateWakeLockLongTimeUnitNegDuration()
    {
        try
        {
            m_SUT.activate(-1, TimeUnit.MILLISECONDS);
            fail("Exception not thrown for a negative duration");
        }
        catch (IllegalArgumentException e)
        {
        }
    }
@ Test public void testActivateWakeLockLongTimeUnitNegDuration ( ) { try { m_SUT . activate ( - 1 , TimeUnit . MILLISECONDS ) ; fail ( "Exception not thrown for a negative duration" ) ; } catch ( IllegalArgumentException e ) { } }
Test method for {@link WakeLockImpl#activate(long, java.util.concurrent.TimeUnit)} when
 a negative duration is provided.
Test method for { @link WakeLockImpl#activate ( long java . util . concurrent . TimeUnit ) } when a negative duration is provided .
// Expected