mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/controller/TestControllerHistoryMgr.java
@Test
    public void testControllerInfoHelperTransportChannel() throws IllegalArgumentException, PersistenceFailedException, 
        ValidationFailedException
    {
        final RemoteChannel remoteChannel = mock(RemoteChannel.class, 
                withSettings().extraInterfaces(TransportChannel.class));
        
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(RemoteConstants.EVENT_PROP_CHANNEL, remoteChannel);
        final Event controllerInfoEvent = new Event(RemoteChannelLookup.TOPIC_CHANNEL_UPDATED, props);
        
        m_ControllerInfoHelper.handleEvent(controllerInfoEvent);
        
        verify(m_DataStore, never()).query(eq(ControllerHistory.class), Mockito.anyString());
        verify(m_DataStore, never()).merge(Mockito.any(PersistentData.class));
    }
/**
     * Verify that the controller info associated with a transport channel isn't persisted as controller history.
     */
Verify that the controller info associated with a transport channel isn't persisted as controller history.
Verify that the controller info associated with a transport channel isn ' t persisted as controller history .
@Test
    public void testControllerInfoHelperTransportChannel() throws IllegalArgumentException, PersistenceFailedException, 
        ValidationFailedException
    {
        final RemoteChannel remoteChannel = mock(RemoteChannel.class, 
                withSettings().extraInterfaces(TransportChannel.class));
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(RemoteConstants.EVENT_PROP_CHANNEL, remoteChannel);
        final Event controllerInfoEvent = new Event(RemoteChannelLookup.TOPIC_CHANNEL_UPDATED, props);
        m_ControllerInfoHelper.handleEvent(controllerInfoEvent);
        verify(m_DataStore, never()).query(eq(ControllerHistory.class), Mockito.anyString());
        verify(m_DataStore, never()).merge(Mockito.any(PersistentData.class));
    }
@ Test public void testControllerInfoHelperTransportChannel ( ) throws IllegalArgumentException , PersistenceFailedException , ValidationFailedException { final RemoteChannel remoteChannel = mock ( RemoteChannel . class , withSettings ( ) . extraInterfaces ( TransportChannel . class ) ) ; final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( RemoteConstants . EVENT_PROP_CHANNEL , remoteChannel ) ; final Event controllerInfoEvent = new Event ( RemoteChannelLookup . TOPIC_CHANNEL_UPDATED , props ) ; m_ControllerInfoHelper . handleEvent ( controllerInfoEvent ) ; verify ( m_DataStore , never ( ) ) . query ( eq ( ControllerHistory . class ) , Mockito . anyString ( ) ) ; verify ( m_DataStore , never ( ) ) . merge ( Mockito . any ( PersistentData . class ) ) ; }
Verify that the controller info associated with a transport channel isn't persisted as controller history.
Verify that the controller info associated with a transport channel isn ' t persisted as controller history .