From f37883c23f9032ace7e0e780fa0e641859863c0c Mon Sep 17 00:00:00 2001 From: ogattaz Date: Thu, 24 Jul 2014 18:30:23 +0200 Subject: CastorXMLUtility enhancements to use specific classloader rather than the main one and to configure castor if needed --- src/test/java/MainTest.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/test/java/MainTest.java') 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 { -- cgit v1.2.3