mil.dod.th.ose.rxtxtty/test/mil/dod/th/ose/rxtxtty/TestRxtxInputStreamWrapper.java
@Test
    public void testReturnNegOne() throws IOException
    {
        byte[] bytes = new byte[0];
        when(m_In.read(bytes, 0, 0)).thenReturn(-1);
        
        m_SUT.read(bytes);
        verify(m_In).read(bytes, 0, 0);
    }
/**
     * Verify that a return value of -1 does not throw an exception.
     */
Verify that a return value of -1 does not throw an exception.
Verify that a return value of - 1 does not throw an exception .
@Test
    public void testReturnNegOne() throws IOException
    {
        byte[] bytes = new byte[0];
        when(m_In.read(bytes, 0, 0)).thenReturn(-1);
        m_SUT.read(bytes);
        verify(m_In).read(bytes, 0, 0);
    }
@ Test public void testReturnNegOne ( ) throws IOException { byte [ ] bytes = new byte [ 0 ] ; when ( m_In . read ( bytes , 0 , 0 ) ) . thenReturn ( - 1 ) ; m_SUT . read ( bytes ) ; verify ( m_In ) . read ( bytes , 0 , 0 ) ; }
Verify that a return value of -1 does not throw an exception.
Verify that a return value of - 1 does not throw an exception .