|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.tests.xmlmerge.DefaultMergeTest
public class DefaultMergeTest
This class tests several functionalities of the xml_merge module, using a
DefaultXmlMerge instance.
| Nested Class Summary | |
|---|---|
(package private) class |
DefaultMergeTest.NonNetworkIbatisResolver
private EntityResolver that does not use the network. |
static class |
DefaultMergeTest.ServletNameMatcher
This class is a custom matcher. |
| Field Summary | |
|---|---|
private static org.slf4j.Logger |
logger
|
static String |
NL
New line. |
| Constructor Summary | |
|---|---|
DefaultMergeTest()
|
|
| Method Summary | |
|---|---|
void |
testAttributeMerge()
Tests configuration of an XmlMerge instance with inline attributes in the patch document. |
void |
testAttributes()
Tests a merge of an element's attributes. |
void |
testCustomMatcher()
Tests a merge using a custom matcher. |
void |
testDtdMerge()
Tests a DTD merge of two source files using a DtdInsertAction: inserts the patch elements in the result according to the order specified in the original document's DTD. |
void |
testIdMapper()
Tests a merge using the IdentityMapper. |
void |
testInsertAction()
Tests the InsertAction in conjunction with the SkipMatcher, inserting the patch elements after the original elements of the same tag in the result. |
void |
testPropertyXPathConfigurer()
Tests configuration of an XmlMerge instance with XPath and Properties, using a PropertyXPathConfigurer. |
void |
testSimpleMerge()
Tests a simple merge of two strings. |
void |
testSpringResource()
Tests the creation of an XML Spring Resource on-the-fly by merging XML documents read from other resources. |
void |
testThreeMerges()
Tests a merge of three strings. |
void |
testXPathOperationFactory()
Tests programmatic configuration of an XmlMerge instance, using an XPathOperationFactory. |
private void |
writeFromTo(InputStream in,
OutputStream out)
Writes from an InputStream to an OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.slf4j.Logger logger
public static final String NL
| Constructor Detail |
|---|
public DefaultMergeTest()
| Method Detail |
|---|
public void testSimpleMerge()
throws Exception
Exception - If an error occurs during the test
public void testThreeMerges()
throws Exception
Exception - If an error occurs during the test
public void testXPathOperationFactory()
throws Exception
Exception - If an error occurs during the test
public void testPropertyXPathConfigurer()
throws Exception
Exception - If an error occurs during the test
public void testInsertAction()
throws Exception
Exception - If an error occurs during the test
public void testSpringResource()
throws Exception
Exception - If an error occurs during the test
public void testDtdMerge()
throws Exception
Exception - If an error occurs during the test
public void testAttributes()
throws Exception
Exception - If an error occurs during the test
public void testIdMapper()
throws Exception
Exception - If an error occurs during the test
public void testAttributeMerge()
throws Exception
Exception - If an error occurs during the test
private void writeFromTo(InputStream in,
OutputStream out)
in - The InputStream to read fromout - The Outputstream to write to
public void testCustomMatcher()
throws Exception
Exception - If an error occurs during the test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||