]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.castor/src/test/java/org/argeo/slc/castor/AbstractCastorTestCase.java
Modular distributions
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.castor / src / test / java / org / argeo / slc / castor / AbstractCastorTestCase.java
index 346fc859fcd590ac131a9685cd746d96aeed036d..1cdd7be8fb3feaefb47d986f097a956b267cf611 100644 (file)
@@ -35,7 +35,7 @@ public abstract class AbstractCastorTestCase extends AbstractSpringTestCase {
                StringResult xml = new StringResult();
                marshaller.marshal(obj, xml);
 
-               log.info("Marshalled ResultPart Request: " + xml);
+               log.info("Marshalled " + obj.getClass() + ": " + xml + "\n");
 
                if (validate)
                        UnitXmlUtils.assertXmlValidation(getBean(XmlValidator.class),
@@ -54,7 +54,8 @@ public abstract class AbstractCastorTestCase extends AbstractSpringTestCase {
                return (T) unmarshal(xml);
        }
 
+       @SuppressWarnings("unchecked")
        protected <T> T marshUnmarsh(Object obj) throws Exception {
-               return marshUnmarsh(obj, true);
+               return (T) marshUnmarsh(obj, true);
        }
 }