[jboss-svn-commits] JBoss Common SVN: r2954 - in jbossxb/trunk/src: main/java/org/jboss/xb/builder and 5 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Jan 13 05:20:45 EST 2009


Author: alex.loubyansky at jboss.com
Date: 2009-01-13 05:20:45 -0500 (Tue, 13 Jan 2009)
New Revision: 2954

Added:
   jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/
   jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/
   jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/ApplyToChildrenFalse.java
   jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/ApplyToChildrenTrue.java
   jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/Child.java
   jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/MissingPrefixMappingException.java
   jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/MissingPrefixMappingGoesTarget.java
   jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/test/
   jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/test/JBossXmlNsPrefixUnitTestCase.java
Modified:
   jbossxb/trunk/src/main/java/org/jboss/xb/annotations/JBossXmlNsPrefix.java
   jbossxb/trunk/src/main/java/org/jboss/xb/builder/JBossXBNoSchemaBuilder.java
   jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/wrapper/test/WrapperUnitTestCase.java
Log:
JBXB-168

Modified: jbossxb/trunk/src/main/java/org/jboss/xb/annotations/JBossXmlNsPrefix.java
===================================================================
--- jbossxb/trunk/src/main/java/org/jboss/xb/annotations/JBossXmlNsPrefix.java	2009-01-13 10:19:25 UTC (rev 2953)
+++ jbossxb/trunk/src/main/java/org/jboss/xb/annotations/JBossXmlNsPrefix.java	2009-01-13 10:20:45 UTC (rev 2954)
@@ -54,4 +54,11 @@
     * @return
     */
    boolean schemaTargetIfNotMapped() default false;
+   
+   /**
+    * Whether child elements (and their types) should also be bound to the namespace the prefix is mapped to
+    * 
+    * @return
+    */
+   boolean applyToChildren() default true;
 }

Modified: jbossxb/trunk/src/main/java/org/jboss/xb/builder/JBossXBNoSchemaBuilder.java
===================================================================
--- jbossxb/trunk/src/main/java/org/jboss/xb/builder/JBossXBNoSchemaBuilder.java	2009-01-13 10:19:25 UTC (rev 2953)
+++ jbossxb/trunk/src/main/java/org/jboss/xb/builder/JBossXBNoSchemaBuilder.java	2009-01-13 10:20:45 UTC (rev 2954)
@@ -1575,6 +1575,7 @@
                localPropertyType = propertyType.getTypeInfoFactory().getTypeInfo(elementType);
          }
 
+         String overridenDefaultNamespace = defaultNamespace;
          if (xmlNsPrefix != null)
          {
             overrideNamespace = schemaBinding.getNamespace(xmlNsPrefix.prefix());
@@ -1590,6 +1591,8 @@
                         + "' is not mapped to any namespace!");
                }
             }
+            else if(xmlNsPrefix.applyToChildren())
+               defaultNamespace = overrideNamespace;
          }
 
          // Determine the name
@@ -1835,6 +1838,8 @@
                log.trace("Added property " + propertyQName + " for type=" + property.getBeanInfo().getName() + " property="
                      + property.getName() + " handler=" + propertyHandler);
          }
+         
+         defaultNamespace = overridenDefaultNamespace;
       }
    }
    

Added: jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/ApplyToChildrenFalse.java
===================================================================
--- jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/ApplyToChildrenFalse.java	                        (rev 0)
+++ jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/ApplyToChildrenFalse.java	2009-01-13 10:20:45 UTC (rev 2954)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.xb.builder.object.element.jbossxmlnsprefix.support;
+
+import javax.xml.bind.annotation.XmlNs;
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.xb.annotations.JBossXmlNsPrefix;
+import org.jboss.xb.annotations.JBossXmlSchema;
+
+/**
+ * A Root.
+ * 
+ * @author <a href="alex at jboss.com">Alexey Loubyansky</a>
+ * @version $Revision: 1.1 $
+ */
+ at XmlRootElement(name="root")
+ at JBossXmlSchema(namespace = "ns.root",
+      xmlns={@XmlNs(namespaceURI = "ns.child", prefix = "child")},
+      elementFormDefault=XmlNsForm.QUALIFIED)
+ at XmlType(propOrder={"child", "rootName"})
+public class ApplyToChildrenFalse
+{
+   private String rootName;
+   private Child child;
+   
+   public String getRootName()
+   {
+      return rootName;
+   }
+   
+   public void setRootName(String rootName)
+   {
+      this.rootName = rootName;
+   }
+   
+   @JBossXmlNsPrefix(prefix = "child", applyToChildren=false)
+   public Child getChild()
+   {
+      return child;
+   }
+   
+   public void setChild(Child child)
+   {
+      this.child = child;
+   }
+}

Added: jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/ApplyToChildrenTrue.java
===================================================================
--- jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/ApplyToChildrenTrue.java	                        (rev 0)
+++ jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/ApplyToChildrenTrue.java	2009-01-13 10:20:45 UTC (rev 2954)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.xb.builder.object.element.jbossxmlnsprefix.support;
+
+import javax.xml.bind.annotation.XmlNs;
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlRootElement;
+
+import org.jboss.xb.annotations.JBossXmlNsPrefix;
+import org.jboss.xb.annotations.JBossXmlSchema;
+
+/**
+ * A Root.
+ * 
+ * @author <a href="alex at jboss.com">Alexey Loubyansky</a>
+ * @version $Revision: 1.1 $
+ */
+ at XmlRootElement(name="root")
+ at JBossXmlSchema(namespace = "ns.root",
+      xmlns={@XmlNs(namespaceURI = "ns.child", prefix = "child")},
+      elementFormDefault=XmlNsForm.QUALIFIED)
+public class ApplyToChildrenTrue
+{
+   private Child child;
+   
+   @JBossXmlNsPrefix(prefix = "child", applyToChildren=true)
+   public Child getChild()
+   {
+      return child;
+   }
+   
+   public void setChild(Child child)
+   {
+      this.child = child;
+   }
+}

Added: jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/Child.java
===================================================================
--- jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/Child.java	                        (rev 0)
+++ jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/Child.java	2009-01-13 10:20:45 UTC (rev 2954)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.xb.builder.object.element.jbossxmlnsprefix.support;
+
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * A Child.
+ * 
+ * @author <a href="alex at jboss.com">Alexey Loubyansky</a>
+ * @version $Revision: 1.1 $
+ */
+ at XmlType
+public class Child
+{
+   private String name;
+   
+   public String getName()
+   {
+      return name;
+   }
+   
+   public void setName(String name)
+   {
+      this.name = name;
+   }
+}

Added: jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/MissingPrefixMappingException.java
===================================================================
--- jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/MissingPrefixMappingException.java	                        (rev 0)
+++ jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/MissingPrefixMappingException.java	2009-01-13 10:20:45 UTC (rev 2954)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.xb.builder.object.element.jbossxmlnsprefix.support;
+
+
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlRootElement;
+
+import org.jboss.xb.annotations.JBossXmlNsPrefix;
+import org.jboss.xb.annotations.JBossXmlSchema;
+
+/**
+ * A MissingPrefixMappingException.
+ * 
+ * @author <a href="alex at jboss.com">Alexey Loubyansky</a>
+ * @version $Revision: 1.1 $
+ */
+ at XmlRootElement
+ at JBossXmlSchema(namespace = "ns.root", elementFormDefault=XmlNsForm.QUALIFIED)
+public class MissingPrefixMappingException
+{
+   private Child child;
+   
+   @JBossXmlNsPrefix(prefix = "child")
+   public Child getChild()
+   {
+      return child;
+   }
+   
+   public void setChild(Child child)
+   {
+      this.child = child;
+   }
+}

Added: jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/MissingPrefixMappingGoesTarget.java
===================================================================
--- jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/MissingPrefixMappingGoesTarget.java	                        (rev 0)
+++ jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/support/MissingPrefixMappingGoesTarget.java	2009-01-13 10:20:45 UTC (rev 2954)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.xb.builder.object.element.jbossxmlnsprefix.support;
+
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlRootElement;
+
+import org.jboss.xb.annotations.JBossXmlNsPrefix;
+import org.jboss.xb.annotations.JBossXmlSchema;
+
+/**
+ * A MissingPrefixMappingGoesTarget.
+ * 
+ * @author <a href="alex at jboss.com">Alexey Loubyansky</a>
+ * @version $Revision: 1.1 $
+ */
+ at XmlRootElement(name="root")
+ at JBossXmlSchema(namespace = "ns.root", elementFormDefault=XmlNsForm.QUALIFIED)
+public class MissingPrefixMappingGoesTarget
+{
+   private Child child;
+   
+   @JBossXmlNsPrefix(prefix = "child", schemaTargetIfNotMapped = true)
+   public Child getChild()
+   {
+      return child;
+   }
+   
+   public void setChild(Child child)
+   {
+      this.child = child;
+   }
+}

Added: jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/test/JBossXmlNsPrefixUnitTestCase.java
===================================================================
--- jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/test/JBossXmlNsPrefixUnitTestCase.java	                        (rev 0)
+++ jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/jbossxmlnsprefix/test/JBossXmlNsPrefixUnitTestCase.java	2009-01-13 10:20:45 UTC (rev 2954)
@@ -0,0 +1,158 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.xb.builder.object.element.jbossxmlnsprefix.test;
+
+import java.util.Collection;
+import java.util.Iterator;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.xb.builder.AbstractBuilderTest;
+import org.jboss.test.xb.builder.object.element.jbossxmlnsprefix.support.ApplyToChildrenFalse;
+import org.jboss.test.xb.builder.object.element.jbossxmlnsprefix.support.MissingPrefixMappingException;
+import org.jboss.test.xb.builder.object.element.jbossxmlnsprefix.support.MissingPrefixMappingGoesTarget;
+import org.jboss.test.xb.builder.object.element.jbossxmlnsprefix.support.ApplyToChildrenTrue;
+import org.jboss.xb.binding.sunday.unmarshalling.ElementBinding;
+import org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding;
+import org.jboss.xb.binding.sunday.unmarshalling.ParticleBinding;
+import org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding;
+import org.jboss.xb.binding.sunday.unmarshalling.TypeBinding;
+import org.jboss.xb.builder.JBossXBBuilder;
+
+/**
+ * A JBossXmlNsPrefixUnitTestCase.
+ * 
+ * @author <a href="alex at jboss.com">Alexey Loubyansky</a>
+ * @version $Revision: 1.1 $
+ */
+public class JBossXmlNsPrefixUnitTestCase extends AbstractBuilderTest
+{
+   public JBossXmlNsPrefixUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testMissingPrefixMappingException() throws Exception
+   {
+      try
+      {
+         JBossXBBuilder.build(MissingPrefixMappingException.class);
+         fail("didn't throw an exception for the unmapped prefix");
+      }
+      catch(RuntimeException e)
+      {
+         assertTrue(e.getMessage().startsWith("Prefix 'child' is not mapped to any namespace!"));
+      }
+   }
+
+   public void testMissingPrefixGoesTarget() throws Exception
+   {
+      SchemaBinding schema = JBossXBBuilder.build(MissingPrefixMappingGoesTarget.class);
+      Iterator<ElementBinding> elements = schema.getElements();
+      assertTrue(elements.hasNext());
+      
+      //root
+      ElementBinding e = elements.next();
+      assertFalse(elements.hasNext());
+      assertEquals(new QName("ns.root", "root"), e.getQName());
+      ModelGroupBinding group = (ModelGroupBinding) e.getType().getParticle().getTerm();
+      Collection<ParticleBinding> particles = group.getParticles();
+      assertEquals(1, particles.size());
+      ParticleBinding particle = particles.iterator().next();
+      
+      // child
+      e = (ElementBinding) particle.getTerm();
+      assertEquals(new QName("ns.root", "child"), e.getQName());
+      group = (ModelGroupBinding) e.getType().getParticle().getTerm();
+      particles = group.getParticles();
+      assertEquals(1, particles.size());
+      particle = particles.iterator().next();
+
+      // child/name
+      e = (ElementBinding) particle.getTerm();
+      assertEquals(new QName("ns.root", "name"), e.getQName());
+   }
+
+   public void testApplyToChildrenTrue()
+   {
+      SchemaBinding schema = JBossXBBuilder.build(ApplyToChildrenTrue.class);
+      assertNotNull(schema);
+      Iterator<ElementBinding> elements = schema.getElements();
+      assertTrue(elements.hasNext());
+      
+      //root
+      ElementBinding e = elements.next();
+      assertFalse(elements.hasNext());
+      assertEquals(new QName("ns.root", "root"), e.getQName());
+      ModelGroupBinding group = (ModelGroupBinding) e.getType().getParticle().getTerm();
+      Collection<ParticleBinding> particles = group.getParticles();
+      assertEquals(1, particles.size());
+      ParticleBinding particle = particles.iterator().next();
+      
+      // child
+      e = (ElementBinding) particle.getTerm();
+      assertEquals(new QName("ns.child", "child"), e.getQName());
+      group = (ModelGroupBinding) e.getType().getParticle().getTerm();
+      particles = group.getParticles();
+      assertEquals(1, particles.size());
+      particle = particles.iterator().next();
+
+      // child/name
+      e = (ElementBinding) particle.getTerm();
+      assertEquals(new QName("ns.child", "name"), e.getQName());
+   }
+
+   public void testApplyToChildrenFalse()
+   {
+      SchemaBinding schema = JBossXBBuilder.build(ApplyToChildrenFalse.class);
+      assertNotNull(schema);
+      Iterator<ElementBinding> elements = schema.getElements();
+      assertTrue(elements.hasNext());
+      
+      //root
+      ElementBinding e = elements.next();
+      assertFalse(elements.hasNext());
+      assertEquals(new QName("ns.root", "root"), e.getQName());
+      ModelGroupBinding group = (ModelGroupBinding) e.getType().getParticle().getTerm();
+      Collection<ParticleBinding> particles = group.getParticles();
+      assertEquals(2, particles.size());
+      Iterator<ParticleBinding> particleIterator = particles.iterator();
+      ParticleBinding particle = particleIterator.next();
+      
+      // child
+      e = (ElementBinding) particle.getTerm();
+      assertEquals(new QName("ns.child", "child"), e.getQName());
+      group = (ModelGroupBinding) e.getType().getParticle().getTerm();
+      particles = group.getParticles();
+      assertEquals(1, particles.size());
+      particle = particles.iterator().next();
+
+      // child/name
+      e = (ElementBinding) particle.getTerm();
+      assertEquals(new QName("ns.root", "name"), e.getQName());
+      
+      // rootName
+      particle = particleIterator.next();
+      e = (ElementBinding) particle.getTerm();
+      assertEquals(new QName("ns.root", "root-name"), e.getQName());
+   }
+}

Modified: jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/wrapper/test/WrapperUnitTestCase.java
===================================================================
--- jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/wrapper/test/WrapperUnitTestCase.java	2009-01-13 10:19:25 UTC (rev 2953)
+++ jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/element/wrapper/test/WrapperUnitTestCase.java	2009-01-13 10:20:45 UTC (rev 2954)
@@ -20,7 +20,7 @@
    public void testFooWrapper()
       throws Exception
    {
-      //enableTrace("org.jboss.xb");
+      enableTrace("org.jboss.xb");
       Foo foo = unmarshalObject(Foo.class);
       List<Number> items = foo.getItems();
       assertEquals(4, items.size());




More information about the jboss-svn-commits mailing list