X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=runtime%2Forg.argeo.slc.support.castor%2Fsrc%2Ftest%2Fjava%2Forg%2Fargeo%2Fslc%2Fcastor%2FAbstractCastorTestCase.java;h=1cdd7be8fb3feaefb47d986f097a956b267cf611;hb=af874b12bcb864e1ee2b48e8d6e1fea3a584c53d;hp=346fc859fcd590ac131a9685cd746d96aeed036d;hpb=1ec5ffef6e38d7804de444391447320ba5a6dded;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.support.castor/src/test/java/org/argeo/slc/castor/AbstractCastorTestCase.java b/runtime/org.argeo.slc.support.castor/src/test/java/org/argeo/slc/castor/AbstractCastorTestCase.java index 346fc859f..1cdd7be8f 100644 --- a/runtime/org.argeo.slc.support.castor/src/test/java/org/argeo/slc/castor/AbstractCastorTestCase.java +++ b/runtime/org.argeo.slc.support.castor/src/test/java/org/argeo/slc/castor/AbstractCastorTestCase.java @@ -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 marshUnmarsh(Object obj) throws Exception { - return marshUnmarsh(obj, true); + return (T) marshUnmarsh(obj, true); } }