mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsMgrImpl.java
@Test
    public void testDeleteLayerWithBadBaseType()
    {
        m_SUT.getTransportsAsync(systemId1);
        Event transport = mockGetLayersResponse(systemId1, "transport");      
        m_EventHelperComms.handleEvent(transport);
        
        List<CommsLayerBaseModel> transports = m_SUT.getTransportsAsync(systemId1);
        assertThat(transports.size(), is(1)); 
        
        Event badBase = mockDeleteEventBadBaseType(systemId1);
        
        m_EventHelper.handleEvent(badBase);
        assertThat(transports.size(), is(1)); //layer should not have been successfully deleted  
    }
/**
     * Verify layer is not deleted as a result of bad base type sent.
     */
Verify layer is not deleted as a result of bad base type sent.
Verify layer is not deleted as a result of bad base type sent .
@Test
    public void testDeleteLayerWithBadBaseType()
    {
        m_SUT.getTransportsAsync(systemId1);
        Event transport = mockGetLayersResponse(systemId1, "transport");      
        m_EventHelperComms.handleEvent(transport);
        List<CommsLayerBaseModel> transports = m_SUT.getTransportsAsync(systemId1);
        assertThat(transports.size(), is(1)); 
        Event badBase = mockDeleteEventBadBaseType(systemId1);
        m_EventHelper.handleEvent(badBase);
        assertThat(transports.size(), is(1)); 
    }
@ Test public void testDeleteLayerWithBadBaseType ( ) { m_SUT . getTransportsAsync ( systemId1 ) ; Event transport = mockGetLayersResponse ( systemId1 , "transport" ) ; m_EventHelperComms . handleEvent ( transport ) ; List < CommsLayerBaseModel > transports = m_SUT . getTransportsAsync ( systemId1 ) ; assertThat ( transports . size ( ) , is ( 1 ) ) ; Event badBase = mockDeleteEventBadBaseType ( systemId1 ) ; m_EventHelper . handleEvent ( badBase ) ; assertThat ( transports . size ( ) , is ( 1 ) ) ; }
Verify layer is not deleted as a result of bad base type sent.
Verify layer is not deleted as a result of bad base type sent .
//layer should not have been successfully deleted  