mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestCustomCommsServiceImpl_Physical.java
@Test
    public void testGetPhysicalLinkFactory() throws IOException, InterruptedException, CCommException
    {
        //mocking
        when(m_PhysRegistry.getObjectByUuid(m_PhysUuidUno)).thenReturn(m_PhysInternal);
        when(m_PhysInternal.getFactory()).thenReturn(m_PhysFactory);
        
        // assert
        assertThat(m_SUT.getPhysicalLinkFactory(m_PhysUuidUno), is((PhysicalLinkFactory)m_PhysFactory));
    }
/**
     * Verify that a physical link factory can be retrieved with the UUID of a physical link
     */
Verify that a physical link factory can be retrieved with the UUID of a physical link
Verify that a physical link factory can be retrieved with the UUID of a physical link
@Test
    public void testGetPhysicalLinkFactory() throws IOException, InterruptedException, CCommException
    {
        when(m_PhysRegistry.getObjectByUuid(m_PhysUuidUno)).thenReturn(m_PhysInternal);
        when(m_PhysInternal.getFactory()).thenReturn(m_PhysFactory);
        assertThat(m_SUT.getPhysicalLinkFactory(m_PhysUuidUno), is((PhysicalLinkFactory)m_PhysFactory));
    }
@ Test public void testGetPhysicalLinkFactory ( ) throws IOException , InterruptedException , CCommException { when ( m_PhysRegistry . getObjectByUuid ( m_PhysUuidUno ) ) . thenReturn ( m_PhysInternal ) ; when ( m_PhysInternal . getFactory ( ) ) . thenReturn ( m_PhysFactory ) ; assertThat ( m_SUT . getPhysicalLinkFactory ( m_PhysUuidUno ) , is ( ( PhysicalLinkFactory ) m_PhysFactory ) ) ; }
Verify that a physical link factory can be retrieved with the UUID of a physical link
Verify that a physical link factory can be retrieved with the UUID of a physical link
//mocking // assert