mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/TestRemoteChannelLookupImpl.java
@Test
    public void testPersistenceServerSocket() throws PersistenceFailedException, IllegalArgumentException, 
        ValidationFailedException
    {
        Socket socket = mock(Socket.class);
        SocketChannel channel = m_SUT.newServerSocketChannel(socket);
        
        // both sync and remove should not work with persistence store
        m_SUT.syncChannel(channel, 100);
        m_SUT.removeChannel(channel);
        
        // verify nothing is persisted
        verify(m_PersistentDataStore, never()).persist(Mockito.any(Class.class), Mockito.any(UUID.class), anyString(),
                Mockito.any(Serializable.class));
        
        // verify nothing is merged either, no updates
        verify(m_PersistentDataStore, never()).merge(Mockito.any(PersistentData.class));
    }
/**
     * Verify server socket channels are not persisted whether synced or removed.
     */
Verify server socket channels are not persisted whether synced or removed.
Verify server socket channels are not persisted whether synced or removed .
@Test
    public void testPersistenceServerSocket() throws PersistenceFailedException, IllegalArgumentException, 
        ValidationFailedException
    {
        Socket socket = mock(Socket.class);
        SocketChannel channel = m_SUT.newServerSocketChannel(socket);
        m_SUT.syncChannel(channel, 100);
        m_SUT.removeChannel(channel);
        verify(m_PersistentDataStore, never()).persist(Mockito.any(Class.class), Mockito.any(UUID.class), anyString(),
                Mockito.any(Serializable.class));
        verify(m_PersistentDataStore, never()).merge(Mockito.any(PersistentData.class));
    }
@ Test public void testPersistenceServerSocket ( ) throws PersistenceFailedException , IllegalArgumentException , ValidationFailedException { Socket socket = mock ( Socket . class ) ; SocketChannel channel = m_SUT . newServerSocketChannel ( socket ) ; m_SUT . syncChannel ( channel , 100 ) ; m_SUT . removeChannel ( channel ) ; verify ( m_PersistentDataStore , never ( ) ) . persist ( Mockito . any ( Class . class ) , Mockito . any ( UUID . class ) , anyString ( ) , Mockito . any ( Serializable . class ) ) ; verify ( m_PersistentDataStore , never ( ) ) . merge ( Mockito . any ( PersistentData . class ) ) ; }
Verify server socket channels are not persisted whether synced or removed.
Verify server socket channels are not persisted whether synced or removed .
// both sync and remove should not work with persistence store // verify nothing is persisted // verify nothing is merged either, no updates