cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1133801 - /cocoon/cocoon3/trunk/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/JAXBGeneratorTestCase.java
Date Thu, 09 Jun 2011 11:34:54 GMT
Author: simonetripodi
Date: Thu Jun  9 11:34:54 2011
New Revision: 1133801

URL: http://svn.apache.org/viewvc?rev=1133801&view=rev
Log:
fixed accidentally broken test

Modified:
    cocoon/cocoon3/trunk/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/JAXBGeneratorTestCase.java

Modified: cocoon/cocoon3/trunk/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/JAXBGeneratorTestCase.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/JAXBGeneratorTestCase.java?rev=1133801&r1=1133800&r2=1133801&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/JAXBGeneratorTestCase.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/JAXBGeneratorTestCase.java
Thu Jun  9 11:34:54 2011
@@ -19,6 +19,7 @@
 package org.apache.cocoon.optional.pipeline.components.sax.jaxb;
 
 import static junit.framework.Assert.assertTrue;
+import static org.apache.cocoon.optional.pipeline.components.sax.jaxb.GenericType.toGenericType;
 
 import java.io.ByteArrayOutputStream;
 import java.util.ArrayList;
@@ -31,8 +32,6 @@ import org.apache.cocoon.sax.component.X
 import org.custommonkey.xmlunit.Diff;
 import org.junit.Test;
 
-import static org.apache.cocoon.optional.pipeline.components.sax.jaxb.GenericType.toGenericType;
-
 /**
  * $Id$
  */
@@ -105,7 +104,7 @@ public final class JAXBGeneratorTestCase
         animals.add(animal);
         animals.add(animal);
 
-        this.internalAssert(toGenericType(animals),
+        this.internalAssert(new GenericType<List<Animal>>(animals){},
                 "<?xml version=\"1.0\" encoding=\"UTF-8\"?><animals><animal><call>Dook</call><colour>albino</colour><latinName>Mustela
putoris furo</latinName><name>Lector</name><age>5</age></animal><animal><call>Dook</call><colour>albino</colour><latinName>Mustela
putoris furo</latinName><name>Lector</name><age>5</age></animal></animals>");
     }
 



Mime
View raw message