mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/link/TestLinkLayerImpl.java
@Test
    public void testDelete_Activated() throws Exception
    {
        m_SUT.activateLayer();
        
        try
        {
            m_SUT.delete();
            fail("Should fail to delete as link layer is activated");
        }
        catch (IllegalStateException e)
        {
            
        }
        verify(m_FactReg, never()).delete(Mockito.any(FactoryObjectInternal.class));
        verify(m_PowManInternal, never()).deleteWakeLock(m_WakeLock);
    }
/**
     * Verify the registry is not called if link layer is active.
     */
Verify the registry is not called if link layer is active.
Verify the registry is not called if link layer is active .
@Test
    public void testDelete_Activated() throws Exception
    {
        m_SUT.activateLayer();
        try
        {
            m_SUT.delete();
            fail("Should fail to delete as link layer is activated");
        }
        catch (IllegalStateException e)
        {
        }
        verify(m_FactReg, never()).delete(Mockito.any(FactoryObjectInternal.class));
        verify(m_PowManInternal, never()).deleteWakeLock(m_WakeLock);
    }
@ Test public void testDelete_Activated ( ) throws Exception { m_SUT . activateLayer ( ) ; try { m_SUT . delete ( ) ; fail ( "Should fail to delete as link layer is activated" ) ; } catch ( IllegalStateException e ) { } verify ( m_FactReg , never ( ) ) . delete ( Mockito . any ( FactoryObjectInternal . class ) ) ; verify ( m_PowManInternal , never ( ) ) . deleteWakeLock ( m_WakeLock ) ; }
Verify the registry is not called if link layer is active.
Verify the registry is not called if link layer is active .