Author: jim.ma
Date: 2010-04-01 11:40:56 -0400 (Thu, 01 Apr 2010)
New Revision: 11922
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2975/JAXBSerializerTestCase.java
Log:
Minor fix : correct the DomUtils invocation
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2975/JAXBSerializerTestCase.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2975/JAXBSerializerTestCase.java 2010-04-01
14:20:47 UTC (rev 11921)
+++
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2975/JAXBSerializerTestCase.java 2010-04-01
15:40:56 UTC (rev 11922)
@@ -79,8 +79,8 @@
Element element = DOMUtils.parse(result.toString());
List<Element> elements = DOMUtils.getChildElementsAsList(element,
"return");
for (Element ele : elements)
- {
- String typeValue = DOMUtil.getAttrValueNS(ele,
"http://www.w3.org/2001/XMLSchema-instance", "type");
+ {
+ String typeValue = DOMUtils.getAttributeValue(ele, new
QName("http://www.w3.org/2001/XMLSchema-instance", "type"));
assertEquals("The namespace prefix is not serialized", true
,typeValue.indexOf(":") > 0);
}
//cleanup the mock object