mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/transport/TestTransportMessageListener.java
@Test(timeout = 1000)
    public void testDeactivate() throws InterruptedException
    {
        Thread thread = new Thread(m_SUT);
        thread.start();
        
        // should cause thread to stop
        m_SUT.deactivate();
        
        // wait for thread to stop or just timeout
        thread.join(100);
        
      //verify that event handler service is being unregistered
        verify(this.m_ServiceRegistration).unregister();
        // verify thread has stopped in case of timeout
        assertThat(thread.isAlive(), is(false));
    }
/**
     * Verify run method exits when deactivate is called.
     */
Verify run method exits when deactivate is called.
Verify run method exits when deactivate is called .
@Test(timeout = 1000)
    public void testDeactivate() throws InterruptedException
    {
        Thread thread = new Thread(m_SUT);
        thread.start();
        m_SUT.deactivate();
        thread.join(100);
        verify(this.m_ServiceRegistration).unregister();
        assertThat(thread.isAlive(), is(false));
    }
@ Test ( timeout = 1000 ) public void testDeactivate ( ) throws InterruptedException { Thread thread = new Thread ( m_SUT ) ; thread . start ( ) ; m_SUT . deactivate ( ) ; thread . join ( 100 ) ; verify ( this . m_ServiceRegistration ) . unregister ( ) ; assertThat ( thread . isAlive ( ) , is ( false ) ) ; }
Verify run method exits when deactivate is called.
Verify run method exits when deactivate is called .
// should cause thread to stop // wait for thread to stop or just timeout //verify that event handler service is being unregistered // verify thread has stopped in case of timeout