mil.dod.th.ose.linux.serial/test/mil/dod/th/ose/linux/physical/TestSerialPortProxyImpl.java
@Test
    public void testSetDTR() 
        throws PhysicalLinkException
    {
        try
        {
            m_SUT.setDTR(false);
            fail("Expected exception");
        }
        catch (IllegalStateException e)
        {
            
        }
        
        m_SUT.open();
        
        m_SUT.setDTR(true);
        
        m_SUT.setDTR(false);
        
        m_SUT.close();
        
        try
        {
            m_SUT.setDTR(true);
            fail("Expected exception");
        }
        catch (IllegalStateException e)
        {
            
        }
    }
/**
     * Verify ability to set DTR of serial port.
     */
Verify ability to set DTR of serial port.
Verify ability to set DTR of serial port .
@Test
    public void testSetDTR() 
        throws PhysicalLinkException
    {
        try
        {
            m_SUT.setDTR(false);
            fail("Expected exception");
        }
        catch (IllegalStateException e)
        {
        }
        m_SUT.open();
        m_SUT.setDTR(true);
        m_SUT.setDTR(false);
        m_SUT.close();
        try
        {
            m_SUT.setDTR(true);
            fail("Expected exception");
        }
        catch (IllegalStateException e)
        {
        }
    }
@ Test public void testSetDTR ( ) throws PhysicalLinkException { try { m_SUT . setDTR ( false ) ; fail ( "Expected exception" ) ; } catch ( IllegalStateException e ) { } m_SUT . open ( ) ; m_SUT . setDTR ( true ) ; m_SUT . setDTR ( false ) ; m_SUT . close ( ) ; try { m_SUT . setDTR ( true ) ; fail ( "Expected exception" ) ; } catch ( IllegalStateException e ) { } }
Verify ability to set DTR of serial port.
Verify ability to set DTR of serial port .