| |
|
| net.n3.nanoxml.xinclude.XIncludeXMLBuilderTestCase
XIncludeXMLBuilderTestCase | public class XIncludeXMLBuilderTestCase extends TestCase (Code) | | Test the XInclude style functionality added to the XMLBuilder
|
doTest | public void doTest(String fileBase) throws Exception(Code) | | This method takes the fileBase name and attempts to find two files
called <fileBase>-input.xml and <fileBase>-expected.xml
Parameters: fileBase - the base of the test file names throws: Exception - |
ensureFailure | public void ensureFailure(String fileBase) throws Exception(Code) | | This method is used to ensure that the contents of the specified file
(when having "-input.xml" appended) cause the parser to fail
Parameters: fileBase - the base name of the input file. throws: Exception - |
testEmptyFallback | public void testEmptyFallback() throws Exception(Code) | | Test that an empty fallback just removes the include and fallback
elements
throws: Exception - |
testIncludeFragmentInElement | public void testIncludeFragmentInElement() throws Exception(Code) | | Test to ensure that content is correctly included when the include
element is not the root element
throws: Exception - |
testIncludeFragmentOnly | public void testIncludeFragmentOnly() throws Exception(Code) | | Test that a fragment included as the root node does not have the
"fragment" element removed
throws: Exception - |
testIncludeInElement | public void testIncludeInElement() throws Exception(Code) | | Test to ensure that content is correctly included when the include
element is not the root element
throws: Exception - |
testIncludeOnly | public void testIncludeOnly() throws Exception(Code) | | Test Empty document with include
throws: Exception - |
testIncludeTextInElement | public void testIncludeTextInElement() throws Exception(Code) | | Test text inclusion
throws: Exception - |
testMultipleIncludes | public void testMultipleIncludes() throws Exception(Code) | | Ensure that two includes in the same element both get included
throws: Exception - |
testParseAttributeText | public void testParseAttributeText() throws Exception(Code) | | Ensure that the parse attribute accepts "text" and treats it like text
throws: Exception - |
testParseAttributeXML | public void testParseAttributeXML() throws Exception(Code) | | Ensure that the parse attribute accepts "xml" and treats like xml
(most other tests do not explicitly set the parse parameter and let it
default to "xml"
throws: Exception - |
testParseInvalidAttribute | public void testParseInvalidAttribute() throws Exception(Code) | | Make sure that a failure occurs for a parse valid that is not "xml"
or "text"
throws: Exception - |
|
|
|