mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/channel/TestChannelMgrImpl.java
private TransportChannel createMockTransportChannel(String transportName, String localAddr,
            String remoteAddr, ChannelStatus status)
    {
        TransportChannel transportChannel = mock(TransportChannel.class);
        when(transportChannel.getChannelType()).thenReturn(RemoteChannelTypeEnum.TRANSPORT);
        when(transportChannel.getStatus()).thenReturn(status);
        when(transportChannel.getTransportLayerName()).thenReturn(transportName);
        when(transportChannel.getLocalMessageAddress()).thenReturn(localAddr);
        when(transportChannel.getRemoteMessageAddress()).thenReturn(remoteAddr);
        
        return transportChannel;
    }
/**
     * Creates a mocked transport channel based on the transport name and local and remote 
     * addresses passed in.
     * @param transportName
     *  the name that the mocked transport channel should have
     * @param localAddr
     *  the local address of the mocked transport channel
     * @param remoteAddr
     *  the remote address of the mocked transport channel
     * @param status
     *  the status of the mocked channel
     * @return
     *  the mocked transport channel
     */
Creates a mocked transport channel based on the transport name and local and remote
addresses passed in.
Creates a mocked transport channel based on the transport name and local and remote addresses passed in .
private TransportChannel createMockTransportChannel(String transportName, String localAddr,
            String remoteAddr, ChannelStatus status)
    {
        TransportChannel transportChannel = mock(TransportChannel.class);
        when(transportChannel.getChannelType()).thenReturn(RemoteChannelTypeEnum.TRANSPORT);
        when(transportChannel.getStatus()).thenReturn(status);
        when(transportChannel.getTransportLayerName()).thenReturn(transportName);
        when(transportChannel.getLocalMessageAddress()).thenReturn(localAddr);
        when(transportChannel.getRemoteMessageAddress()).thenReturn(remoteAddr);
        return transportChannel;
    }
private TransportChannel createMockTransportChannel ( String transportName , String localAddr , String remoteAddr , ChannelStatus status ) { TransportChannel transportChannel = mock ( TransportChannel . class ) ; when ( transportChannel . getChannelType ( ) ) . thenReturn ( RemoteChannelTypeEnum . TRANSPORT ) ; when ( transportChannel . getStatus ( ) ) . thenReturn ( status ) ; when ( transportChannel . getTransportLayerName ( ) ) . thenReturn ( transportName ) ; when ( transportChannel . getLocalMessageAddress ( ) ) . thenReturn ( localAddr ) ; when ( transportChannel . getRemoteMessageAddress ( ) ) . thenReturn ( remoteAddr ) ; return transportChannel ; }
Creates a mocked transport channel based on the transport name and local and remote
 addresses passed in.
Creates a mocked transport channel based on the transport name and local and remote addresses passed in .