mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/physical/TestPhysicalLinkImpl.java
@Test
    public final void testReadTimeout() throws IllegalArgumentException, FactoryException, 
        InterruptedException, IOException, IllegalStateException, ConfigurationException
    {
        m_SUT.setReadTimeout(100);
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(100));

        //verify 0 is ok
        m_SUT.setReadTimeout(0);
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(0));
        
        //Verify a negative number is ok
        m_SUT.setReadTimeout(-1);
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(-1));
    }
/**
     * Verify ability to set and retrieve the read timeout value.
     * Verify that the readtime value is validated.
     */
Verify ability to set and retrieve the read timeout value.
Verify that the readtime value is validated.
Verify ability to set and retrieve the read timeout value . Verify that the readtime value is validated .
@Test
    public final void testReadTimeout() throws IllegalArgumentException, FactoryException, 
        InterruptedException, IOException, IllegalStateException, ConfigurationException
    {
        m_SUT.setReadTimeout(100);
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(100));
        m_SUT.setReadTimeout(0);
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(0));
        m_SUT.setReadTimeout(-1);
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(-1));
    }
@ Test public final void testReadTimeout ( ) throws IllegalArgumentException , FactoryException , InterruptedException , IOException , IllegalStateException , ConfigurationException { m_SUT . setReadTimeout ( 100 ) ; assertThat ( m_SUT . getConfig ( ) . readTimeoutMs ( ) , is ( 100 ) ) ; m_SUT . setReadTimeout ( 0 ) ; assertThat ( m_SUT . getConfig ( ) . readTimeoutMs ( ) , is ( 0 ) ) ; m_SUT . setReadTimeout ( - 1 ) ; assertThat ( m_SUT . getConfig ( ) . readTimeoutMs ( ) , is ( - 1 ) ) ; }
Verify ability to set and retrieve the read timeout value.
Verify ability to set and retrieve the read timeout value .
//verify 0 is ok //Verify a negative number is ok