public class ByteArrayLexerSourceTest
extends TestCase
Constructor and Description |
---|
ByteArrayLexerSourceTest(java.lang.String testName) |
public ByteArrayLexerSourceTest(java.lang.String testName)
public void testReadShouldReturnArrayContentsInOrder()
public void testSuccessiveReadsShouldReturnInputInChunks()
public void testCarriageReturnsShouldBeEaten()
public void testCarriageReturnsShouldBeUnreadAutomatically() throws java.io.IOException
java.io.IOException
public void testReadUntilShouldIncludeInputUpToChar()
public void testReadUnreadReadShouldProduceCorrectSequence()
public void testReadUnreadManyReadShouldProduceCorrectSequence()
public void testUnreadNewCharactersShouldBeAppended()
public void testUnreadBothNewAndExistingCharacters() throws java.io.IOException
java.io.IOException
public void testReadLineBytesShouldIncludeInputExcludingNewline()
public void testReadLineBytesShouldIncludeTheRestOfInputWhenNoMoreNewlines()
public void testReadUntilNonExistentMarkerShouldReturnNull() throws java.io.IOException
java.io.IOException
public void testSkipUntilShouldSkipPastNonMatchingChars() throws java.io.IOException
java.io.IOException
public void testSkipUntilNonExistentMarkerShouldReturnEOF() throws java.io.IOException
java.io.IOException
public void testMatchMarkerShouldMatchAStringInTheInput() throws java.io.IOException
java.io.IOException
public void testMatchMarkerShouldMatchAStringInTheInputAndAdvance() throws java.io.IOException
java.io.IOException
public void testMatchMarkerShouldNotAdvanceIfItDoesntMatch() throws java.io.IOException
java.io.IOException
public void testMatchMarkerShouldSkipOverLeadingWhitespace() throws java.io.IOException
java.io.IOException
public void testMatchMarkerShouldNotCountNewlinesAsWhitespace() throws java.io.IOException
java.io.IOException
public void testMatchMarkerShouldVerifyEndOfLine() throws java.io.IOException
java.io.IOException
public void testMatchMarkerShouldVerifyEndOfLineCRLF() throws java.io.IOException
java.io.IOException
public void testMatchMarkerShouldVerifyEndOfLineCRLFWithIndent() throws java.io.IOException
java.io.IOException
public void testMatchMarkerAcrossUnreadBuffers() throws java.io.IOException
java.io.IOException
public void testWasBeginOfLineBehaviorAtBeginningOfInput() throws java.io.IOException
java.io.IOException
public void testWasBeginOfLineTellsIfPreviousCharactersWereNewline() throws java.io.IOException
java.io.IOException
public void testPeekGivesTheNextCharaterWithoutAdvancing() throws java.io.IOException
java.io.IOException
public void testLinesAndOffsetsAreReported() throws java.io.IOException
java.io.IOException
public void testCurrentLineGivesAnErrorLocation() throws java.io.IOException
java.io.IOException
public void testCaptureLines() throws java.io.IOException
java.io.IOException
public void testCaptureLinesWithCarriageReturn() throws java.io.IOException
java.io.IOException
public void testGetRemainingOutputAsStream() throws java.io.IOException
java.io.IOException
Copyright © 2002-2009 JRuby Team. All Rights Reserved.