edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/impl/connection/TestLineReader.java
@Test
    public void testReadLine() throws IOException
    {
        final String novatelPVAString = "first-line;";
        final String novatelTimeString = "second-line;";
        
        // the input stream
        InputStream inStream = 
                new ByteArrayInputStream(new String(novatelPVAString + "\r\n" + novatelTimeString + "\r\n").getBytes());
        
        LineReader reader = new LineReader(inStream);
        assertThat(reader.readLine(), is(novatelPVAString));
        assertThat(reader.readLine(), is(novatelTimeString));
    }
/**
     * Test the read line will parse the lines correctly.
     */
Test the read line will parse the lines correctly.
Test the read line will parse the lines correctly .
@Test
    public void testReadLine() throws IOException
    {
        final String novatelPVAString = "first-line;";
        final String novatelTimeString = "second-line;";
        InputStream inStream = 
                new ByteArrayInputStream(new String(novatelPVAString + "\r\n" + novatelTimeString + "\r\n").getBytes());
        LineReader reader = new LineReader(inStream);
        assertThat(reader.readLine(), is(novatelPVAString));
        assertThat(reader.readLine(), is(novatelTimeString));
    }
@ Test public void testReadLine ( ) throws IOException { final String novatelPVAString = "first-line;" ; final String novatelTimeString = "second-line;" ; InputStream inStream = new ByteArrayInputStream ( new String ( novatelPVAString + "\r\n" + novatelTimeString + "\r\n" ) . getBytes ( ) ) ; LineReader reader = new LineReader ( inStream ) ; assertThat ( reader . readLine ( ) , is ( novatelPVAString ) ) ; assertThat ( reader . readLine ( ) , is ( novatelTimeString ) ) ; }
Test the read line will parse the lines correctly.
Test the read line will parse the lines correctly .
// the input stream