public class SourceTests extends ParserTestCase
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
DEFAULT_CHARSET
The default charset.
|
| 构造器和说明 |
|---|
SourceTests(java.lang.String name)
Test the first level stream class.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
testInputStreamSourceClose()
Test closing a InputStreamSource.
|
void |
testInputStreamSourceEmpty()
Test initialization of a InputStreamSource with a zero length byte array.
|
void |
testInputStreamSourceMarkReset()
Test mark/reset of a InputStreamSource in the middle of reading.
|
void |
testInputStreamSourceMidReset()
Test resetting a InputStreamSource in the middle of reading.
|
void |
testInputStreamSourceMultByte()
Test multi-byte read with a InputStreamSource.
|
void |
testInputStreamSourceNull()
Test initialization with a null value.
|
void |
testInputStreamSourceOneByte()
Test initialization of a InputStreamSource with an input stream having only one byte.
|
void |
testInputStreamSourcePositionedMultByte()
Test positioned multi-byte read with a InputStreamSource.
|
void |
testInputStreamSourceReady()
Test ready of a InputStreamSource.
|
void |
testInputStreamSourceReset()
Test resetting a InputStreamSource.
|
void |
testInputStreamSourceSkip()
Test skipping a InputStreamSource.
|
void |
testSameChars()
Test that the same characters are returned as with another reader.
|
void |
testStringSourceClose()
Test closing a StringSource.
|
void |
testStringSourceEmpty()
Test initialization of a StringSource with a zero length string.
|
void |
testStringSourceMarkReset()
Test mark/reset of a StringSource in the middle of reading.
|
void |
testStringSourceMidReset()
Test resetting a StringSource in the middle of reading.
|
void |
testStringSourceMultByte()
Test multi-byte read with a StringSource.
|
void |
testStringSourceNull()
Test initialization of a StringSource with a null value.
|
void |
testStringSourceOneCharacter()
Test initialization of a StringSource with a one character string.
|
void |
testStringSourcePositionedMultByte()
Test positioned multi-byte read with a StringSource.
|
void |
testStringSourceReady()
Test ready of a StringSource.
|
void |
testStringSourceReset()
Test resetting a StringSource.
|
void |
testStringSourceSkip()
Test skipping a StringSource.
|
assertNodeCount, assertSameType, assertStringEquals, assertSuperType, assertTagEquals, assertType, assertXmlEquals, failWithMessage, getParser, main, parseAndAssertNodeCount, parseNodes, removeEscapeCharacters, setParser, testFakeassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toStringpublic static final java.lang.String DEFAULT_CHARSET
ISO-8859-1,
see RFC 2616 (http://www.ietf.org/rfc/rfc2616.txt?number=2616) section 3.7.1
Another alias is "8859_1".public SourceTests(java.lang.String name)
name - Stringpublic void testInputStreamSourceNull()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testInputStreamSourceEmpty()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testInputStreamSourceOneByte()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testInputStreamSourceClose()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testInputStreamSourceReset()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testInputStreamSourceMidReset()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testInputStreamSourceMarkReset()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testInputStreamSourceSkip()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testInputStreamSourceMultByte()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testInputStreamSourcePositionedMultByte()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testInputStreamSourceReady()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testSameChars()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testStringSourceNull()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testStringSourceEmpty()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testStringSourceOneCharacter()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testStringSourceClose()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testStringSourceReset()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testStringSourceMidReset()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testStringSourceMarkReset()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testStringSourceSkip()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testStringSourceMultByte()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testStringSourcePositionedMultByte()
throws java.io.IOException
java.io.IOException - IOExceptionpublic void testStringSourceReady()
throws java.io.IOException
java.io.IOException - IOException