summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorogattaz <olivier@gattaz.com>2014-07-24 18:30:23 +0200
committerogattaz <olivier@gattaz.com>2014-07-24 18:30:23 +0200
commitf37883c23f9032ace7e0e780fa0e641859863c0c (patch)
tree9a0e7a3c9e6118f4f34dd655255d21ecf966019e /src/test
parent9daf11b2b6b19e385688ae93ce7d261805d8ea4e (diff)
CastorXMLUtility enhancements to use specific classloader rather than
the main one and to configure castor if needed
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/MainTest.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/test/java/MainTest.java b/src/test/java/MainTest.java
index 2559c67..26898ac 100644
--- a/src/test/java/MainTest.java
+++ b/src/test/java/MainTest.java
@@ -36,8 +36,16 @@ public class MainTest {
}
}
+ /**
+ * @throws Exception
+ */
public void testMapFiles() throws Exception {
- new CastorXMLUtility(Gateway.getResource().getKernelResourceURL("mapFiles/"));
+
+ Properties wAppProperties = new Properties();
+ wAppProperties.put(CastorXMLUtility.CASTOR_XML_SERIALIZER_FACTORY,
+ "org.exolab.castor.xml.XercesXMLSerializerFactory");
+
+ new CastorXMLUtility(Gateway.getResource(), wAppProperties, "mapFiles/");
}
public void testBootItems() throws Exception {