Code example for LineNumberInputStream

Methods: getLineNumber, setLineNumber

0
 
    /** 
     * @tests java.io.LineNumberInputStream#setLineNumber(int) 
     */ 
    public void test_setLineNumberI() { 
        lnis.setLineNumber(89);
        assertEquals("Failed to set line number", 89, lnis.getLineNumber());
    } 
 
    /** 
     * @tests java.io.LineNumberInputStream#skip(long) 
     */ 
    public void test_skipJ() throws IOException { 
        lnis.skip(4);
        assertEquals("Skip failed to increment lineNumber", 2, lnis
                .getLineNumber());
    } 
 
    /** 
     * Sets up the fixture, for example, open a network connection. This method 
     * is called before a test is executed.