|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.sun.syndication.unittest.TestXmlReader
public class TestXmlReader
Constructor Summary | |
---|---|
TestXmlReader()
|
Method Summary | |
---|---|
protected InputStream |
getXmlStream(String bomType,
String xmlType,
String streamEnc,
String prologEnc)
|
static void |
main(String[] args)
|
void |
testAlternateDefaultEncoding(String cT,
String bomEnc,
String streamEnc,
String prologEnc,
String alternateEnc)
|
void |
testEncodingAttributeXML()
|
void |
testHttp()
|
protected void |
testHttpInvalid(String cT,
String bomEnc,
String streamEnc,
String prologEnc)
|
protected void |
testHttpLenient(String cT,
String bomEnc,
String streamEnc,
String prologEnc,
String shouldbe)
|
void |
testHttpValid(String cT,
String bomEnc,
String streamEnc,
String prologEnc)
|
void |
testRawBom()
|
protected void |
testRawBomInvalid(String bomEnc,
String streamEnc,
String prologEnc)
|
protected void |
testRawBomValid(String encoding)
|
void |
testRawNoBom()
|
protected void |
testRawNoBomInvalid(String encoding)
|
protected void |
testRawNoBomValid(String encoding)
|
Methods inherited from class junit.framework.TestCase |
---|
assertEquals, 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, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestXmlReader()
Method Detail |
---|
public static void main(String[] args) throws Exception
Exception
protected void testRawNoBomValid(String encoding) throws Exception
Exception
protected void testRawNoBomInvalid(String encoding) throws Exception
Exception
public void testRawNoBom() throws Exception
Exception
protected void testRawBomValid(String encoding) throws Exception
Exception
protected void testRawBomInvalid(String bomEnc, String streamEnc, String prologEnc) throws Exception
Exception
public void testRawBom() throws Exception
Exception
public void testHttp() throws Exception
Exception
public void testAlternateDefaultEncoding(String cT, String bomEnc, String streamEnc, String prologEnc, String alternateEnc) throws Exception
Exception
public void testHttpValid(String cT, String bomEnc, String streamEnc, String prologEnc) throws Exception
Exception
protected void testHttpInvalid(String cT, String bomEnc, String streamEnc, String prologEnc) throws Exception
Exception
protected void testHttpLenient(String cT, String bomEnc, String streamEnc, String prologEnc, String shouldbe) throws Exception
Exception
public void testEncodingAttributeXML() throws Exception
Exception
protected InputStream getXmlStream(String bomType, String xmlType, String streamEnc, String prologEnc) throws IOException
bomType
- no-bom, UTF-16BE-bom, UTF-16LE-bom, UTF-8-bomxmlType
- xml, xml-prolog, xml-prolog-charset
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |