[jboss-svn-commits] JBoss Common SVN: r2477 - in jbossxb/trunk/src: test/java/org/jboss/test/xml and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Aug 9 07:05:28 EDT 2007


Author: alex.loubyansky at jboss.com
Date: 2007-08-09 07:05:28 -0400 (Thu, 09 Aug 2007)
New Revision: 2477

Modified:
   jbossxb/trunk/src/main/java/org/jboss/xb/binding/sunday/unmarshalling/impl/runtime/RtElementHandler.java
   jbossxb/trunk/src/test/java/org/jboss/test/xml/AttributeRefUnitTestCase.java
Log:
fixed the test

Modified: jbossxb/trunk/src/main/java/org/jboss/xb/binding/sunday/unmarshalling/impl/runtime/RtElementHandler.java
===================================================================
--- jbossxb/trunk/src/main/java/org/jboss/xb/binding/sunday/unmarshalling/impl/runtime/RtElementHandler.java	2007-08-09 10:28:12 UTC (rev 2476)
+++ jbossxb/trunk/src/main/java/org/jboss/xb/binding/sunday/unmarshalling/impl/runtime/RtElementHandler.java	2007-08-09 11:05:28 UTC (rev 2477)
@@ -743,6 +743,7 @@
       {
          QName attrName = new QName(attrs.getURI(i), attrs.getLocalName(i));
          AttributeBinding binding = type.getAttribute(attrName);
+         System.out.println(attrName + " - " + binding);
          if(binding != null)
          {
             AttributeHandler handler = binding.getHandler();

Modified: jbossxb/trunk/src/test/java/org/jboss/test/xml/AttributeRefUnitTestCase.java
===================================================================
--- jbossxb/trunk/src/test/java/org/jboss/test/xml/AttributeRefUnitTestCase.java	2007-08-09 10:28:12 UTC (rev 2476)
+++ jbossxb/trunk/src/test/java/org/jboss/test/xml/AttributeRefUnitTestCase.java	2007-08-09 11:05:28 UTC (rev 2477)
@@ -58,7 +58,7 @@
       "</xsd:schema>";
                     
    private static final String XML =
-      "<top xmlns='http://www.jboss.org/test/xml/attrRef' attr='attr' attrRef='attrRef'/>";
+      "<ns:top xmlns:ns='http://www.jboss.org/test/xml/attrRef' attr='attr' ns:attrRef='attrRef'/>";
 
    public AttributeRefUnitTestCase(String name)
    {
@@ -67,6 +67,7 @@
 
    public void testMain() throws Exception
    {
+      enableTrace("org.jboss.xb.binding.sunday.unmarshalling.XsdBinder");
       SchemaBinding schema = XsdBinder.bind(new StringReader(XSD), null);      
       Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
       Object o = unmarshaller.unmarshal(new StringReader(XML), schema);




More information about the jboss-svn-commits mailing list