mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestPhysicalLinkRegistryCallback.java
@Test
    public void testOnRemovedObjectClosed() throws PhysicalLinkException
    {
        PhysicalLinkInternal phys =  mock(PhysicalLinkInternal.class);
        when(phys.isOpen()).thenReturn(false);
        
        m_SUT.onRemovedObject(phys);
        verify(phys, never()).close();
    }
/**
     * Verify when an phys is removed that the link is closed only if open.
     */
Verify when an phys is removed that the link is closed only if open.
Verify when an phys is removed that the link is closed only if open .
@Test
    public void testOnRemovedObjectClosed() throws PhysicalLinkException
    {
        PhysicalLinkInternal phys =  mock(PhysicalLinkInternal.class);
        when(phys.isOpen()).thenReturn(false);
        m_SUT.onRemovedObject(phys);
        verify(phys, never()).close();
    }
@ Test public void testOnRemovedObjectClosed ( ) throws PhysicalLinkException { PhysicalLinkInternal phys = mock ( PhysicalLinkInternal . class ) ; when ( phys . isOpen ( ) ) . thenReturn ( false ) ; m_SUT . onRemovedObject ( phys ) ; verify ( phys , never ( ) ) . close ( ) ; }
Verify when an phys is removed that the link is closed only if open.
Verify when an phys is removed that the link is closed only if open .