mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsMgrImpl.java
@Test
    public void testGetPhysicalClazzByName()
    {
        // add controller and layer
        m_SUT.getPhysicalsAsync(systemId1);
        Event physicals = mockGetLayersResponse(systemId1, "physical");
        Event nameChange = mockEventNameUpdated(systemId1, "physical");

        m_EventHelperComms.handleEvent(physicals);
        m_EventHelper.handleEvent(nameChange);
        
        assertThat(m_SUT.getPhysicalClazzByName("fizzy", systemId1), is(PhysicalLink.class.getName()));
        
        assertThat(m_SUT.getPhysicalClazzByName("jennyJenny", 8675309), is(nullValue()));
    }
/**
     * Verify class type of physical layer is returned based on given layer name.
     */
Verify class type of physical layer is returned based on given layer name.
Verify class type of physical layer is returned based on given layer name .
@Test
    public void testGetPhysicalClazzByName()
    {
        m_SUT.getPhysicalsAsync(systemId1);
        Event physicals = mockGetLayersResponse(systemId1, "physical");
        Event nameChange = mockEventNameUpdated(systemId1, "physical");
        m_EventHelperComms.handleEvent(physicals);
        m_EventHelper.handleEvent(nameChange);
        assertThat(m_SUT.getPhysicalClazzByName("fizzy", systemId1), is(PhysicalLink.class.getName()));
        assertThat(m_SUT.getPhysicalClazzByName("jennyJenny", 8675309), is(nullValue()));
    }
@ Test public void testGetPhysicalClazzByName ( ) { m_SUT . getPhysicalsAsync ( systemId1 ) ; Event physicals = mockGetLayersResponse ( systemId1 , "physical" ) ; Event nameChange = mockEventNameUpdated ( systemId1 , "physical" ) ; m_EventHelperComms . handleEvent ( physicals ) ; m_EventHelper . handleEvent ( nameChange ) ; assertThat ( m_SUT . getPhysicalClazzByName ( "fizzy" , systemId1 ) , is ( PhysicalLink . class . getName ( ) ) ) ; assertThat ( m_SUT . getPhysicalClazzByName ( "jennyJenny" , 8675309 ) , is ( nullValue ( ) ) ) ; }
Verify class type of physical layer is returned based on given layer name.
Verify class type of physical layer is returned based on given layer name .
// add controller and layer