Author: alessio.soldano(a)jboss.com
Date: 2009-05-27 05:45:40 -0400 (Wed, 27 May 2009)
New Revision: 10116
Modified:
common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java
common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTest.java
Log:
- Small improvement to DOMUtils
- making Logger attribute in JBossWSTest static
Modified: common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java 2009-05-26 15:46:19 UTC
(rev 10115)
+++ common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java 2009-05-27 09:45:40 UTC
(rev 10116)
@@ -296,6 +296,11 @@
nsElement = getParentElement(nsElement);
}
}
+
+ if (namespaceURI.equals("") && el.getNamespaceURI() != null)
+ {
+ namespaceURI = el.getNamespaceURI();
+ }
if (namespaceURI.equals(""))
throw new IllegalArgumentException("Cannot find namespace uri for:
" + qualifiedName);
Modified: common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTest.java
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTest.java 2009-05-26 15:46:19 UTC
(rev 10115)
+++ common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTest.java 2009-05-27 09:45:40 UTC
(rev 10116)
@@ -57,7 +57,7 @@
*/
public abstract class JBossWSTest extends TestCase
{
- protected Logger log = Logger.getLogger(getClass().getName());
+ protected static Logger log = Logger.getLogger(JBossWSTest.class.getName());
private JBossWSTestHelper delegate = new JBossWSTestHelper();
public JBossWSTest()
Show replies by date