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.IOExceptionpublic void testReadUntilShouldIncludeInputUpToChar()
public void testReadUnreadReadShouldProduceCorrectSequence()
public void testReadUnreadManyReadShouldProduceCorrectSequence()
public void testUnreadNewCharactersShouldBeAppended()
public void testUnreadBothNewAndExistingCharacters()
throws java.io.IOException
java.io.IOExceptionpublic void testReadLineBytesShouldIncludeInputExcludingNewline()
public void testReadLineBytesShouldIncludeTheRestOfInputWhenNoMoreNewlines()
public void testReadUntilNonExistentMarkerShouldReturnNull()
throws java.io.IOException
java.io.IOExceptionpublic void testSkipUntilShouldSkipPastNonMatchingChars()
throws java.io.IOException
java.io.IOExceptionpublic void testSkipUntilNonExistentMarkerShouldReturnEOF()
throws java.io.IOException
java.io.IOExceptionpublic void testMatchMarkerShouldMatchAStringInTheInput()
throws java.io.IOException
java.io.IOExceptionpublic void testMatchMarkerShouldMatchAStringInTheInputAndAdvance()
throws java.io.IOException
java.io.IOExceptionpublic void testMatchMarkerShouldNotAdvanceIfItDoesntMatch()
throws java.io.IOException
java.io.IOExceptionpublic void testMatchMarkerShouldSkipOverLeadingWhitespace()
throws java.io.IOException
java.io.IOExceptionpublic void testMatchMarkerShouldNotCountNewlinesAsWhitespace()
throws java.io.IOException
java.io.IOExceptionpublic void testMatchMarkerShouldVerifyEndOfLine()
throws java.io.IOException
java.io.IOExceptionpublic void testMatchMarkerShouldVerifyEndOfLineCRLF()
throws java.io.IOException
java.io.IOExceptionpublic void testMatchMarkerShouldVerifyEndOfLineCRLFWithIndent()
throws java.io.IOException
java.io.IOExceptionpublic void testMatchMarkerAcrossUnreadBuffers()
throws java.io.IOException
java.io.IOExceptionpublic void testWasBeginOfLineBehaviorAtBeginningOfInput()
throws java.io.IOException
java.io.IOExceptionpublic void testWasBeginOfLineTellsIfPreviousCharactersWereNewline()
throws java.io.IOException
java.io.IOExceptionpublic void testPeekGivesTheNextCharaterWithoutAdvancing()
throws java.io.IOException
java.io.IOExceptionpublic void testLinesAndOffsetsAreReported()
throws java.io.IOException
java.io.IOExceptionpublic void testCurrentLineGivesAnErrorLocation()
throws java.io.IOException
java.io.IOExceptionpublic void testCaptureLines()
throws java.io.IOException
java.io.IOExceptionpublic void testCaptureLinesWithCarriageReturn()
throws java.io.IOException
java.io.IOExceptionpublic void testGetRemainingOutputAsStream()
throws java.io.IOException
java.io.IOExceptionCopyright © 2002-2009 JRuby Team. All Rights Reserved.