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