cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r436785 [14/18] - in /incubator/cxf/trunk: ./ api/ api/src/main/java/org/apache/cxf/buslifecycle/ api/src/main/java/org/apache/cxf/databinding/ api/src/main/java/org/apache/cxf/endpoint/ api/src/main/java/org/apache/cxf/interceptor/ api/src...
Date Fri, 25 Aug 2006 13:17:37 GMT
Modified: incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/XPathAssertTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/XPathAssertTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/XPathAssertTest.java (original)
+++ incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/XPathAssertTest.java Fri Aug 25 06:16:36 2006
@@ -1,47 +1,47 @@
-package org.apache.cxf.test;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.w3c.dom.Document;
-
-import junit.framework.AssertionFailedError;
-import junit.framework.TestCase;
-
-import org.apache.cxf.helpers.DOMUtils;
-
-public class XPathAssertTest extends TestCase {
-    public void testAssert() throws Exception {
-        Document document = DOMUtils.readXml(getClass().getResourceAsStream("test.xml"));
-
-        XPathAssert.assertValid("//a", document, null);
-        XPathAssert.assertInvalid("//aasd", document, null);
-
-        try {
-            XPathAssert.assertInvalid("//a", document, null);
-            fail("Expression is valid!");
-        } catch (AssertionFailedError e) {
-            // this is correct
-        }
-
-        try {
-            XPathAssert.assertValid("//aa", document, null);
-            fail("Expression is invalid!");
-        } catch (AssertionFailedError e) {
-            // this is correct
-        }
-
-        XPathAssert.assertXPathEquals("//b", "foo", document, null);
-    }
-
-    public void testAssertNamespace() throws Exception {
-        Document document = DOMUtils.readXml(getClass().getResourceAsStream("test2.xml"));
-
-        Map<String, String> namespaces = new HashMap<String, String>();
-        namespaces.put("a", "urn:foo");
-        namespaces.put("z", "urn:z");
-
-        XPathAssert.assertValid("//a:a", document, namespaces);
-        XPathAssert.assertValid("//z:b", document, namespaces);
-    }
-}
+package org.apache.cxf.test;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.w3c.dom.Document;
+
+import junit.framework.AssertionFailedError;
+import junit.framework.TestCase;
+
+import org.apache.cxf.helpers.DOMUtils;
+
+public class XPathAssertTest extends TestCase {
+    public void testAssert() throws Exception {
+        Document document = DOMUtils.readXml(getClass().getResourceAsStream("test.xml"));
+
+        XPathAssert.assertValid("//a", document, null);
+        XPathAssert.assertInvalid("//aasd", document, null);
+
+        try {
+            XPathAssert.assertInvalid("//a", document, null);
+            fail("Expression is valid!");
+        } catch (AssertionFailedError e) {
+            // this is correct
+        }
+
+        try {
+            XPathAssert.assertValid("//aa", document, null);
+            fail("Expression is invalid!");
+        } catch (AssertionFailedError e) {
+            // this is correct
+        }
+
+        XPathAssert.assertXPathEquals("//b", "foo", document, null);
+    }
+
+    public void testAssertNamespace() throws Exception {
+        Document document = DOMUtils.readXml(getClass().getResourceAsStream("test2.xml"));
+
+        Map<String, String> namespaces = new HashMap<String, String>();
+        namespaces.put("a", "urn:foo");
+        namespaces.put("z", "urn:z");
+
+        XPathAssert.assertValid("//a:a", document, namespaces);
+        XPathAssert.assertValid("//z:b", document, namespaces);
+    }
+}

Propchange: incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/XPathAssertTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/XPathAssertTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test.xml (original)
+++ incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test.xml Fri Aug 25 06:16:36 2006
@@ -1,7 +1,7 @@
-<a>
- <b>
-   foo
- </b>
- <c>
- </c>
+<a>
+ <b>
+   foo
+ </b>
+ <c>
+ </c>
 </a>

Propchange: incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test2.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test2.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test2.xml (original)
+++ incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test2.xml Fri Aug 25 06:16:36 2006
@@ -1,7 +1,7 @@
-<a xmlns="urn:foo">
- <z:b xmlns:z="urn:z">
-   foo
- </z:b>
- <c>
- </c>
+<a xmlns="urn:foo">
+ <z:b xmlns:z="urn:z">
+   foo
+ </z:b>
+ <c>
+ </c>
 </a>

Propchange: incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test2.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test2.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/test/test2.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareReq.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareReq.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareReq.xml (original)
+++ incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareReq.xml Fri Aug 25 06:16:36 2006
@@ -1,12 +1,12 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
-		   xmlns:xs="http://www.w3.org/2001/XMLSchema" 
-		   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-    <SOAP-ENV:Body>
-	<ns4:inout xmlns:ns4="http://apache.org/hello_world_doc_lit_bare/types" 
-		   xmlns:ns5="http://www.w3.org/2005/08/addressing/wsdl">
-	    <ns4:tickerSymbol>CXF</ns4:tickerSymbol>
-	    <ns4:tickerPrice>1.0</ns4:tickerPrice>
-	</ns4:inout>
-    </SOAP-ENV:Body>
+<?xml version="1.0" encoding="utf-8" ?>
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
+		   xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+		   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+    <SOAP-ENV:Body>
+	<ns4:inout xmlns:ns4="http://apache.org/hello_world_doc_lit_bare/types" 
+		   xmlns:ns5="http://www.w3.org/2005/08/addressing/wsdl">
+	    <ns4:tickerSymbol>CXF</ns4:tickerSymbol>
+	    <ns4:tickerPrice>1.0</ns4:tickerPrice>
+	</ns4:inout>
+    </SOAP-ENV:Body>
 </SOAP-ENV:Envelope>

Propchange: incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareReq.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareReq.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareReq.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareResp.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareResp.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareResp.xml (original)
+++ incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareResp.xml Fri Aug 25 06:16:36 2006
@@ -1,12 +1,12 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
-		   xmlns:xs="http://www.w3.org/2001/XMLSchema" 
-		   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-    <SOAP-ENV:Body>
-	<ns5:inout xmlns:ns4="http://www.w3.org/2005/08/addressing/wsdl" 
-		   xmlns:ns5="http://apache.org/hello_world_doc_lit_bare/types">
-	    <ns5:tickerSymbol>OBJECTWEB</ns5:tickerSymbol>
-	    <ns5:tickerPrice>4.5</ns5:tickerPrice>
-	</ns5:inout>
-    </SOAP-ENV:Body>
-</SOAP-ENV:Envelope>
+<?xml version="1.0" encoding="utf-8" ?>
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
+		   xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+		   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+    <SOAP-ENV:Body>
+	<ns5:inout xmlns:ns4="http://www.w3.org/2005/08/addressing/wsdl" 
+		   xmlns:ns5="http://apache.org/hello_world_doc_lit_bare/types">
+	    <ns5:tickerSymbol>OBJECTWEB</ns5:tickerSymbol>
+	    <ns5:tickerPrice>4.5</ns5:tickerPrice>
+	</ns5:inout>
+    </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>

Propchange: incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareResp.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareResp.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/core/src/test/resources/org/apache/cxf/interceptor/resources/sayHiDocLitBareResp.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/Messages.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/attachment/AttachmentDeserializer.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/attachment/AttachmentSerializer.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/attachment/JAXBAttachmentMarshaller.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/attachment/JAXBAttachmentUnmarshaller.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/EventDataReader.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/EventDataWriter.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/MessageDataReader.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/MessageDataWriter.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/NodeDataReader.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/NodeDataWriter.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/XMLStreamDataReader.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/XMLStreamDataReader.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/XMLStreamDataReader.java (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/XMLStreamDataReader.java Fri Aug 25 06:16:36 2006
@@ -1,33 +1,33 @@
-package org.apache.cxf.jaxb.io;
-
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLStreamReader;
-
-import org.apache.cxf.databinding.DataReader;
-import org.apache.cxf.jaxb.JAXBDataReaderFactory;
-import org.apache.cxf.jaxb.JAXBEncoderDecoder;
-
-public class XMLStreamDataReader implements DataReader<XMLStreamReader> {
-    final JAXBDataReaderFactory factory;
-
-    public XMLStreamDataReader(JAXBDataReaderFactory cb) {
-        factory = cb;
-    }
-
-    public Object read(XMLStreamReader input) {
-        return read(null, input);
-    }
-
-    public Object read(QName name, XMLStreamReader reader) {
-        return read(name, reader, null);
-    }
-
-    public Object read(QName name, XMLStreamReader reader, Class cls) {
-        return JAXBEncoderDecoder.unmarshall(factory.getJAXBContext(),
-                                             factory.getSchema(),
-                                             reader,
-                                             name,
-                                             cls,
-                                             null);
-    }
-}
+package org.apache.cxf.jaxb.io;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamReader;
+
+import org.apache.cxf.databinding.DataReader;
+import org.apache.cxf.jaxb.JAXBDataReaderFactory;
+import org.apache.cxf.jaxb.JAXBEncoderDecoder;
+
+public class XMLStreamDataReader implements DataReader<XMLStreamReader> {
+    final JAXBDataReaderFactory factory;
+
+    public XMLStreamDataReader(JAXBDataReaderFactory cb) {
+        factory = cb;
+    }
+
+    public Object read(XMLStreamReader input) {
+        return read(null, input);
+    }
+
+    public Object read(QName name, XMLStreamReader reader) {
+        return read(name, reader, null);
+    }
+
+    public Object read(QName name, XMLStreamReader reader, Class cls) {
+        return JAXBEncoderDecoder.unmarshall(factory.getJAXBContext(),
+                                             factory.getSchema(),
+                                             reader,
+                                             name,
+                                             cls,
+                                             null);
+    }
+}

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/XMLStreamDataReader.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/XMLStreamDataReader.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/XMLStreamDataWriter.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/XMLStreamDataWriter.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/XMLStreamDataWriter.java (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/XMLStreamDataWriter.java Fri Aug 25 06:16:36 2006
@@ -1,31 +1,31 @@
-package org.apache.cxf.jaxb.io;
-
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLStreamWriter;
-
-import org.apache.cxf.databinding.DataWriter;
-import org.apache.cxf.jaxb.JAXBDataWriterFactory;
-import org.apache.cxf.jaxb.JAXBEncoderDecoder;
-
-public class XMLStreamDataWriter implements DataWriter<XMLStreamWriter> {
-    final JAXBDataWriterFactory factory;
-
-    public XMLStreamDataWriter(JAXBDataWriterFactory cb) {
-        factory = cb;
-    }
-    
-    public void write(Object obj, XMLStreamWriter output) {
-        write(obj, null, output);
-    }
-    
-    public void write(Object obj, QName elName, XMLStreamWriter output) {
-        if (obj != null) {
-            JAXBEncoderDecoder.marshall(factory.getJAXBContext(),
-                                        factory.getSchema(),
-                                        obj,
-                                        elName,
-                                        output,
-                                        null);
-        }
-    }
-}
+package org.apache.cxf.jaxb.io;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamWriter;
+
+import org.apache.cxf.databinding.DataWriter;
+import org.apache.cxf.jaxb.JAXBDataWriterFactory;
+import org.apache.cxf.jaxb.JAXBEncoderDecoder;
+
+public class XMLStreamDataWriter implements DataWriter<XMLStreamWriter> {
+    final JAXBDataWriterFactory factory;
+
+    public XMLStreamDataWriter(JAXBDataWriterFactory cb) {
+        factory = cb;
+    }
+    
+    public void write(Object obj, XMLStreamWriter output) {
+        write(obj, null, output);
+    }
+    
+    public void write(Object obj, QName elName, XMLStreamWriter output) {
+        if (obj != null) {
+            JAXBEncoderDecoder.marshall(factory.getJAXBContext(),
+                                        factory.getSchema(),
+                                        obj,
+                                        elName,
+                                        output,
+                                        null);
+        }
+    }
+}

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/XMLStreamDataWriter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/XMLStreamDataWriter.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/BareInInterceptorTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/BareInInterceptorTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/BareInInterceptorTest.java (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/BareInInterceptorTest.java Fri Aug 25 06:16:36 2006
@@ -1,63 +1,63 @@
-package org.apache.cxf.jaxb;
-
-import java.util.List;
-
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLStreamReader;
-
-import org.apache.cxf.interceptor.BareInInterceptor;
-import org.apache.cxf.message.Message;
-import org.apache.cxf.service.model.BindingOperationInfo;
-import org.apache.hello_world_soap_http.types.GreetMe;
-import org.apache.hello_world_soap_http.types.GreetMeResponse;
-
-public class BareInInterceptorTest extends TestBase {
-
-    public void testInterceptorInbound() throws Exception {
-        BareInInterceptor interceptor = new BareInInterceptor();
-        message.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
-            .createXMLStreamReader(getTestStream(getClass(), "resources/GreetMeDocLiteralReq.xml")));
-
-        message.put(Message.INBOUND_MESSAGE, Message.INBOUND_MESSAGE);
-
-        interceptor.handleMessage(message);
-
-        assertNull(message.getContent(Exception.class));
-
-        List<?> parameters = message.getContent(List.class);
-        assertEquals(1, parameters.size());
-
-        Object obj = parameters.get(0);
-
-        assertTrue(obj instanceof GreetMe);
-        GreetMe greet = (GreetMe)obj;
-        assertEquals("TestSOAPInputPMessage", greet.getRequestType());
-        
-        BindingOperationInfo bop = message.getExchange().get(BindingOperationInfo.class);
-        assertNotNull(bop);
-        // this doesn't pass yet as we can't introspect the message part type classes to find
-        // the correct operation. One possibility is to try to match QNames instead.
-        // assertEquals("greetMe", bop.getName().getLocalPart());
-    }
-
-    public void testInterceptorOutbound() throws Exception {
-        BareInInterceptor interceptor = new BareInInterceptor();
-
-        message.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
-            .createXMLStreamReader(getTestStream(getClass(), "resources/GreetMeDocLiteralResp.xml")));
-
-        interceptor.handleMessage(message);
-
-        List<?> parameters = message.getContent(List.class);
-        assertEquals(1, parameters.size());
-
-        Object obj = parameters.get(0);
-
-        assertTrue(obj instanceof GreetMeResponse);
-        GreetMeResponse greet = (GreetMeResponse)obj;
-        assertEquals("TestSOAPOutputPMessage", greet.getResponseType());
-
-        BindingOperationInfo bop = message.getExchange().get(BindingOperationInfo.class);
-        assertNotNull(bop);
-    }
-}
+package org.apache.cxf.jaxb;
+
+import java.util.List;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+
+import org.apache.cxf.interceptor.BareInInterceptor;
+import org.apache.cxf.message.Message;
+import org.apache.cxf.service.model.BindingOperationInfo;
+import org.apache.hello_world_soap_http.types.GreetMe;
+import org.apache.hello_world_soap_http.types.GreetMeResponse;
+
+public class BareInInterceptorTest extends TestBase {
+
+    public void testInterceptorInbound() throws Exception {
+        BareInInterceptor interceptor = new BareInInterceptor();
+        message.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
+            .createXMLStreamReader(getTestStream(getClass(), "resources/GreetMeDocLiteralReq.xml")));
+
+        message.put(Message.INBOUND_MESSAGE, Message.INBOUND_MESSAGE);
+
+        interceptor.handleMessage(message);
+
+        assertNull(message.getContent(Exception.class));
+
+        List<?> parameters = message.getContent(List.class);
+        assertEquals(1, parameters.size());
+
+        Object obj = parameters.get(0);
+
+        assertTrue(obj instanceof GreetMe);
+        GreetMe greet = (GreetMe)obj;
+        assertEquals("TestSOAPInputPMessage", greet.getRequestType());
+        
+        BindingOperationInfo bop = message.getExchange().get(BindingOperationInfo.class);
+        assertNotNull(bop);
+        // this doesn't pass yet as we can't introspect the message part type classes to find
+        // the correct operation. One possibility is to try to match QNames instead.
+        // assertEquals("greetMe", bop.getName().getLocalPart());
+    }
+
+    public void testInterceptorOutbound() throws Exception {
+        BareInInterceptor interceptor = new BareInInterceptor();
+
+        message.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
+            .createXMLStreamReader(getTestStream(getClass(), "resources/GreetMeDocLiteralResp.xml")));
+
+        interceptor.handleMessage(message);
+
+        List<?> parameters = message.getContent(List.class);
+        assertEquals(1, parameters.size());
+
+        Object obj = parameters.get(0);
+
+        assertTrue(obj instanceof GreetMeResponse);
+        GreetMeResponse greet = (GreetMeResponse)obj;
+        assertEquals("TestSOAPOutputPMessage", greet.getResponseType());
+
+        BindingOperationInfo bop = message.getExchange().get(BindingOperationInfo.class);
+        assertNotNull(bop);
+    }
+}

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/BareInInterceptorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/BareInInterceptorTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/BareOutInterceptorTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/BareOutInterceptorTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/BareOutInterceptorTest.java (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/BareOutInterceptorTest.java Fri Aug 25 06:16:36 2006
@@ -1,93 +1,93 @@
-package org.apache.cxf.jaxb;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.util.Arrays;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLStreamReader;
-import javax.xml.stream.XMLStreamWriter;
-
-import org.apache.cxf.interceptor.BareOutInterceptor;
-import org.apache.cxf.message.Message;
-import org.apache.cxf.service.model.BindingOperationInfo;
-import org.apache.cxf.staxutils.DepthXMLStreamReader;
-import org.apache.cxf.staxutils.StaxUtils;
-import org.apache.hello_world_soap_http.types.GreetMe;
-import org.apache.hello_world_soap_http.types.GreetMeResponse;
-
-
-public class BareOutInterceptorTest extends TestBase {
-
-    BareOutInterceptor interceptor;
-    
-    private ByteArrayOutputStream baos;
-    private XMLStreamWriter writer;
-    
-    public void setUp() throws Exception {
-        super.setUp();
-        
-        interceptor = new BareOutInterceptor();
-        baos =  new ByteArrayOutputStream();
-        writer = getXMLStreamWriter(baos);
-        message.setContent(XMLStreamWriter.class, writer);
-        message.getExchange().put(BindingOperationInfo.class, operation);
-    }
-
-    public void tearDown() throws Exception {
-        baos.close();
-    }
-
-    public void testWriteOutbound() throws Exception {
-        GreetMeResponse greetMe = new GreetMeResponse();
-        greetMe.setResponseType("responseType");
-        
-        message.setContent(List.class, Arrays.asList(greetMe));
-
-        interceptor.handleMessage(message);
-
-        writer.close();
-        
-        assertNull(message.getContent(Exception.class));
-
-        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
-        //System.err.println(baos.toString());
-        XMLStreamReader xr = StaxUtils.createXMLStreamReader(bais);
-        DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
-        StaxUtils.toNextElement(reader);
-        assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "greetMeResponse"),
-                     reader.getName());
-        
-        StaxUtils.nextEvent(reader);
-        StaxUtils.toNextElement(reader);
-        assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "responseType"),
-                     reader.getName());
-    }
-
-    public void testWriteInbound() throws Exception {
-        GreetMe greetMe = new GreetMe();
-        greetMe.setRequestType("requestType");
-        
-        message.setContent(List.class, Arrays.asList(greetMe));
-        message.put(Message.REQUESTOR_ROLE, Boolean.TRUE);
-        
-        interceptor.handleMessage(message);
-        
-        writer.close();
-        
-        assertNull(message.getContent(Exception.class));
-
-        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
-        XMLStreamReader xr = StaxUtils.createXMLStreamReader(bais);
-        DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
-        StaxUtils.toNextElement(reader);
-        assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "greetMe"),
-                     reader.getName());
-        
-        StaxUtils.nextEvent(reader);
-        StaxUtils.toNextElement(reader);
-        assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "requestType"),
-                     reader.getName());
-    }
-}
+package org.apache.cxf.jaxb;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.util.Arrays;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
+
+import org.apache.cxf.interceptor.BareOutInterceptor;
+import org.apache.cxf.message.Message;
+import org.apache.cxf.service.model.BindingOperationInfo;
+import org.apache.cxf.staxutils.DepthXMLStreamReader;
+import org.apache.cxf.staxutils.StaxUtils;
+import org.apache.hello_world_soap_http.types.GreetMe;
+import org.apache.hello_world_soap_http.types.GreetMeResponse;
+
+
+public class BareOutInterceptorTest extends TestBase {
+
+    BareOutInterceptor interceptor;
+    
+    private ByteArrayOutputStream baos;
+    private XMLStreamWriter writer;
+    
+    public void setUp() throws Exception {
+        super.setUp();
+        
+        interceptor = new BareOutInterceptor();
+        baos =  new ByteArrayOutputStream();
+        writer = getXMLStreamWriter(baos);
+        message.setContent(XMLStreamWriter.class, writer);
+        message.getExchange().put(BindingOperationInfo.class, operation);
+    }
+
+    public void tearDown() throws Exception {
+        baos.close();
+    }
+
+    public void testWriteOutbound() throws Exception {
+        GreetMeResponse greetMe = new GreetMeResponse();
+        greetMe.setResponseType("responseType");
+        
+        message.setContent(List.class, Arrays.asList(greetMe));
+
+        interceptor.handleMessage(message);
+
+        writer.close();
+        
+        assertNull(message.getContent(Exception.class));
+
+        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+        //System.err.println(baos.toString());
+        XMLStreamReader xr = StaxUtils.createXMLStreamReader(bais);
+        DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
+        StaxUtils.toNextElement(reader);
+        assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "greetMeResponse"),
+                     reader.getName());
+        
+        StaxUtils.nextEvent(reader);
+        StaxUtils.toNextElement(reader);
+        assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "responseType"),
+                     reader.getName());
+    }
+
+    public void testWriteInbound() throws Exception {
+        GreetMe greetMe = new GreetMe();
+        greetMe.setRequestType("requestType");
+        
+        message.setContent(List.class, Arrays.asList(greetMe));
+        message.put(Message.REQUESTOR_ROLE, Boolean.TRUE);
+        
+        interceptor.handleMessage(message);
+        
+        writer.close();
+        
+        assertNull(message.getContent(Exception.class));
+
+        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+        XMLStreamReader xr = StaxUtils.createXMLStreamReader(bais);
+        DepthXMLStreamReader reader = new DepthXMLStreamReader(xr);
+        StaxUtils.toNextElement(reader);
+        assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "greetMe"),
+                     reader.getName());
+        
+        StaxUtils.nextEvent(reader);
+        StaxUtils.toNextElement(reader);
+        assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "requestType"),
+                     reader.getName());
+    }
+}

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/BareOutInterceptorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/BareOutInterceptorTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataReaderFactoryTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataReaderFactoryTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataReaderFactoryTest.java (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataReaderFactoryTest.java Fri Aug 25 06:16:36 2006
@@ -1,49 +1,49 @@
-package org.apache.cxf.jaxb;
-
-import java.util.Arrays;
-import java.util.List;
-
-import javax.xml.stream.XMLEventReader;
-import javax.xml.stream.XMLStreamReader;
-
-import org.w3c.dom.Node;
-
-import junit.framework.TestCase;
-
-import org.apache.cxf.databinding.DataReader;
-import org.apache.cxf.jaxb.io.EventDataReader;
-import org.apache.cxf.jaxb.io.NodeDataReader;
-import org.apache.cxf.jaxb.io.XMLStreamDataReader;
-
-public class JAXBDataReaderFactoryTest extends TestCase {
-    JAXBDataReaderFactory factory;
-
-    public void setUp() {
-        factory = new JAXBDataReaderFactory();
-    }
-
-    public void testSupportedFormats() {
-        List<Class<?>> cls = Arrays.asList(factory.getSupportedFormats());
-        assertNotNull(cls);
-        assertEquals(3, cls.size());
-        assertTrue(cls.contains(XMLStreamReader.class));
-        assertTrue(cls.contains(XMLEventReader.class));
-        assertTrue(cls.contains(Node.class));
-    }
-
-    public void testCreateReader() {
-        DataReader reader = factory.createReader(XMLStreamReader.class);
-        assertTrue(reader instanceof XMLStreamDataReader);
-        
-        reader = factory.createReader(XMLEventReader.class);
-        assertTrue(reader instanceof EventDataReader);
-
-        reader = factory.createReader(Node.class);
-        assertTrue(reader instanceof NodeDataReader);
-
-        reader = factory.createReader(null);
-        assertNull(reader);
-    }
-    
-}
-
+package org.apache.cxf.jaxb;
+
+import java.util.Arrays;
+import java.util.List;
+
+import javax.xml.stream.XMLEventReader;
+import javax.xml.stream.XMLStreamReader;
+
+import org.w3c.dom.Node;
+
+import junit.framework.TestCase;
+
+import org.apache.cxf.databinding.DataReader;
+import org.apache.cxf.jaxb.io.EventDataReader;
+import org.apache.cxf.jaxb.io.NodeDataReader;
+import org.apache.cxf.jaxb.io.XMLStreamDataReader;
+
+public class JAXBDataReaderFactoryTest extends TestCase {
+    JAXBDataReaderFactory factory;
+
+    public void setUp() {
+        factory = new JAXBDataReaderFactory();
+    }
+
+    public void testSupportedFormats() {
+        List<Class<?>> cls = Arrays.asList(factory.getSupportedFormats());
+        assertNotNull(cls);
+        assertEquals(3, cls.size());
+        assertTrue(cls.contains(XMLStreamReader.class));
+        assertTrue(cls.contains(XMLEventReader.class));
+        assertTrue(cls.contains(Node.class));
+    }
+
+    public void testCreateReader() {
+        DataReader reader = factory.createReader(XMLStreamReader.class);
+        assertTrue(reader instanceof XMLStreamDataReader);
+        
+        reader = factory.createReader(XMLEventReader.class);
+        assertTrue(reader instanceof EventDataReader);
+
+        reader = factory.createReader(Node.class);
+        assertTrue(reader instanceof NodeDataReader);
+
+        reader = factory.createReader(null);
+        assertNull(reader);
+    }
+    
+}
+

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataReaderFactoryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataReaderFactoryTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataWriterFactoryTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataWriterFactoryTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataWriterFactoryTest.java (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataWriterFactoryTest.java Fri Aug 25 06:16:36 2006
@@ -1,49 +1,49 @@
-package org.apache.cxf.jaxb;
-
-import java.util.Arrays;
-import java.util.List;
-
-import javax.xml.stream.XMLEventWriter;
-import javax.xml.stream.XMLStreamWriter;
-
-import org.w3c.dom.Node;
-
-import junit.framework.TestCase;
-
-import org.apache.cxf.databinding.DataWriter;
-import org.apache.cxf.jaxb.io.EventDataWriter;
-import org.apache.cxf.jaxb.io.NodeDataWriter;
-import org.apache.cxf.jaxb.io.XMLStreamDataWriter;
-
-public class JAXBDataWriterFactoryTest extends TestCase {
-    JAXBDataWriterFactory factory;
-
-    public void setUp() {
-        factory = new JAXBDataWriterFactory();
-    }
-
-    public void testSupportedFormats() {
-        List<Class<?>> cls = Arrays.asList(factory.getSupportedFormats());
-        assertNotNull(cls);
-        assertEquals(3, cls.size());
-        assertTrue(cls.contains(XMLStreamWriter.class));
-        assertTrue(cls.contains(XMLEventWriter.class));
-        assertTrue(cls.contains(Node.class));
-    }
-
-    public void testCreateWriter() {
-        DataWriter writer = factory.createWriter(XMLStreamWriter.class);
-        assertTrue(writer instanceof XMLStreamDataWriter);
-        
-        writer = factory.createWriter(XMLEventWriter.class);
-        assertTrue(writer instanceof EventDataWriter);
-        
-        writer = factory.createWriter(Node.class);
-        assertTrue(writer instanceof NodeDataWriter);
-
-        writer = factory.createWriter(null);
-        assertNull(writer);
-    }
-    
-}
-
+package org.apache.cxf.jaxb;
+
+import java.util.Arrays;
+import java.util.List;
+
+import javax.xml.stream.XMLEventWriter;
+import javax.xml.stream.XMLStreamWriter;
+
+import org.w3c.dom.Node;
+
+import junit.framework.TestCase;
+
+import org.apache.cxf.databinding.DataWriter;
+import org.apache.cxf.jaxb.io.EventDataWriter;
+import org.apache.cxf.jaxb.io.NodeDataWriter;
+import org.apache.cxf.jaxb.io.XMLStreamDataWriter;
+
+public class JAXBDataWriterFactoryTest extends TestCase {
+    JAXBDataWriterFactory factory;
+
+    public void setUp() {
+        factory = new JAXBDataWriterFactory();
+    }
+
+    public void testSupportedFormats() {
+        List<Class<?>> cls = Arrays.asList(factory.getSupportedFormats());
+        assertNotNull(cls);
+        assertEquals(3, cls.size());
+        assertTrue(cls.contains(XMLStreamWriter.class));
+        assertTrue(cls.contains(XMLEventWriter.class));
+        assertTrue(cls.contains(Node.class));
+    }
+
+    public void testCreateWriter() {
+        DataWriter writer = factory.createWriter(XMLStreamWriter.class);
+        assertTrue(writer instanceof XMLStreamDataWriter);
+        
+        writer = factory.createWriter(XMLEventWriter.class);
+        assertTrue(writer instanceof EventDataWriter);
+        
+        writer = factory.createWriter(Node.class);
+        assertTrue(writer instanceof NodeDataWriter);
+
+        writer = factory.createWriter(null);
+        assertNull(writer);
+    }
+    
+}
+

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataWriterFactoryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataWriterFactoryTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBEncoderDecoderTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBEncoderDecoderTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBEncoderDecoderTest.java (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBEncoderDecoderTest.java Fri Aug 25 06:16:36 2006
@@ -1,321 +1,321 @@
-package org.apache.cxf.jaxb;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.InputStream;
-import java.lang.reflect.Method;
-import java.lang.reflect.Type;
-
-import javax.xml.XMLConstants;
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.Unmarshaller;
-import javax.xml.namespace.QName;
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPFactory;
-import javax.xml.stream.XMLEventReader;
-import javax.xml.stream.XMLEventWriter;
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLOutputFactory;
-import javax.xml.transform.stream.StreamSource;
-import javax.xml.validation.Schema;
-import javax.xml.validation.SchemaFactory;
-import javax.xml.ws.ProtocolException;
-import javax.xml.ws.RequestWrapper;
-
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-
-import junit.framework.TestCase;
-
-import org.apache.cxf.testutil.common.TestUtil;
-import org.apache.hello_world_soap_http.Greeter;
-import org.apache.hello_world_soap_http.types.GreetMe;
-import org.apache.hello_world_soap_http.types.StringStruct;
-import org.apache.type_test.doc.TypeTestPortType;
-
-/**
- * JAXBEncoderDecoderTest
- * @author apaibir
- */
-public class JAXBEncoderDecoderTest extends TestCase {
-    public static final QName  SOAP_ENV = 
-            new QName("http://schemas.xmlsoap.org/soap/envelope/", "Envelope");
-    public static final QName  SOAP_BODY = 
-            new QName("http://schemas.xmlsoap.org/soap/envelope/", "Body");
-
-    RequestWrapper wrapperAnnotation;
-    JAXBContext context;
-    Schema schema;
-    
-    public JAXBEncoderDecoderTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.textui.TestRunner.run(JAXBEncoderDecoderTest.class);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-
-        context = JAXBEncoderDecoder.createJAXBContextForClass(Greeter.class);
-        Method method = TestUtil.getMethod(Greeter.class, "greetMe");
-        wrapperAnnotation = method.getAnnotation(RequestWrapper.class);
-        
-        InputStream is =  getClass().getResourceAsStream("resources/StringStruct.xsd");
-        StreamSource schemaSource = new StreamSource(is);
-        assertNotNull(schemaSource);
-        SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
-        schema = factory.newSchema(schemaSource);
-        assertNotNull(schema);
-    }
-
-    public void testMarshallIntoDOM() throws Exception {
-        String str = new String("Hello");
-        QName inCorrectElName = new QName("http://test_jaxb_marshall", "requestType");
-        SOAPFactory soapElFactory = SOAPFactory.newInstance();
-        Element elNode = soapElFactory.createElement(inCorrectElName);
-        assertNotNull(elNode);
-
-        Node node;
-        try {
-            JAXBEncoderDecoder.marshall(context, null, null, inCorrectElName,  elNode);
-            fail("Should have thrown a ProtocolException");
-        } catch (ProtocolException ex) {
-            //expected - not a valid object
-        }
-
-        GreetMe obj = new GreetMe();
-        obj.setRequestType("Hello");
-        QName elName = new QName(wrapperAnnotation.targetNamespace(),
-                                 wrapperAnnotation.localName());
-        JAXBEncoderDecoder.marshall(context, null, obj, elName, elNode);
-        node = elNode.getLastChild();
-        //The XML Tree Looks like
-        //<GreetMe><requestType>Hello</requestType></GreetMe>
-        assertEquals(Node.ELEMENT_NODE, node.getNodeType());
-        Node childNode = node.getFirstChild();
-        assertEquals(Node.ELEMENT_NODE, childNode.getNodeType());
-        childNode = childNode.getFirstChild();
-        assertEquals(Node.TEXT_NODE, childNode.getNodeType());
-        assertEquals(str, childNode.getNodeValue());
-
-        // Now test schema validation during marshaling
-        StringStruct stringStruct = new StringStruct();
-        // Don't initialize one of the structure members.
-        //stringStruct.setArg0("hello");
-        stringStruct.setArg1("world");
-        // Marshal without the schema should work.
-        JAXBEncoderDecoder.marshall(context, null, stringStruct, elName,  elNode);
-        try {
-            // Marshal with the schema should get an exception.
-            JAXBEncoderDecoder.marshall(context, schema, stringStruct, elName,  elNode);
-            fail("Marshal with schema should have thrown a ProtocolException");
-        } catch (ProtocolException ex) {
-            //expected - not a valid object
-        }
-    }
-
-    public void testMarshallIntoStax() throws Exception {
-        GreetMe obj = new GreetMe();
-        obj.setRequestType("Hello");
-        QName elName = new QName(wrapperAnnotation.targetNamespace(),
-                                 wrapperAnnotation.localName());
-        
-        ByteArrayOutputStream baos = new ByteArrayOutputStream();
-        XMLOutputFactory opFactory = XMLOutputFactory.newInstance();
-        opFactory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, Boolean.TRUE);
-        XMLEventWriter writer = opFactory.createXMLEventWriter(baos);
-
-        //STARTDOCUMENT/ENDDOCUMENT is not required
-        //writer.add(eFactory.createStartDocument("utf-8", "1.0"));        
-        JAXBEncoderDecoder.marshall(context, null, obj, elName, writer);
-        //writer.add(eFactory.createEndDocument());
-        writer.flush();
-        writer.close();
-        
-        //System.out.println(baos.toString());
-        
-        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
-        XMLInputFactory ipFactory = XMLInputFactory.newInstance();
-        XMLEventReader reader = ipFactory.createXMLEventReader(bais);
-        
-        Unmarshaller um = context.createUnmarshaller();        
-        Object val = um.unmarshal(reader, GreetMe.class);
-        assertTrue(val instanceof JAXBElement);
-        val = ((JAXBElement)val).getValue();
-        assertTrue(val instanceof GreetMe);
-        assertEquals(obj.getRequestType(), 
-                     ((GreetMe)val).getRequestType());
-    }
-
-    public void testUnmarshallFromStax() throws Exception {
-        QName elName = new QName(wrapperAnnotation.targetNamespace(),
-                                 wrapperAnnotation.localName());
-        
-        InputStream is =  getClass().getResourceAsStream("resources/GreetMeDocLiteralReq.xml");
-        XMLInputFactory factory = XMLInputFactory.newInstance();
-        XMLEventReader reader = 
-            factory.createXMLEventReader(is);
-
-        QName[] tags = {SOAP_ENV, SOAP_BODY};
-        StaxEventFilter filter = new StaxEventFilter(tags);
-        reader = factory.createFilteredReader(reader, filter);
-
-        //Remove START_DOCUMENT & START_ELEMENT pertaining to Envelope and Body Tags.
-
-        Object val = JAXBEncoderDecoder.unmarshall(context, null, reader, elName, GreetMe.class);
-        assertNotNull(val);
-        assertTrue(val instanceof GreetMe);
-        assertEquals("TestSOAPInputPMessage", 
-                     ((GreetMe)val).getRequestType());
-
-        is.close();
-    }
-    
-    public void testMarshalRPCLit() throws Exception {
-        SOAPFactory soapElFactory = SOAPFactory.newInstance();
-        QName elName = new QName("http://test_jaxb_marshall", "in");
-        SOAPElement elNode = soapElFactory.createElement(elName);
-        JAXBEncoderDecoder.marshall(context, null, new String("TestSOAPMessage"), elName,  elNode);
-        
-        assertNotNull(elNode.getChildNodes());
-        assertEquals("TestSOAPMessage", elNode.getFirstChild().getFirstChild().getNodeValue());
-    }
-
-    private SOAPElement getTestSOAPElement(QName elName) throws Exception {
-        //Create a XML Tree of
-        //<GreetMe><requestType>Hello</requestType></GreetMe>
-        SOAPFactory soapElFactory = SOAPFactory.newInstance();
-        SOAPElement elNode = soapElFactory.createElement(elName);
-        elNode.addNamespaceDeclaration("", elName.getNamespaceURI()); 
-
-        return elNode;
-    }
-    
-    public void testUnMarshall() throws Exception {
-        //Hello World Wsdl generated namespace
-        QName elName = new QName(wrapperAnnotation.targetNamespace(),
-                                 wrapperAnnotation.localName());
-
-        SOAPElement elNode = getTestSOAPElement(elName);
-        String str = new String("Hello Test");
-        elNode.addChildElement("requestType").setValue(str);
-
-        
-        Object obj = JAXBEncoderDecoder.unmarshall(context, null,
-                         elNode, elName, Class.forName(wrapperAnnotation.className()));
-        assertNotNull(obj);
-
-        //Add a Node and then test
-        assertEquals(GreetMe.class,  obj.getClass());
-        assertEquals(str, ((GreetMe)obj).getRequestType());
-        
-        Node n = null;
-        try {
-            JAXBEncoderDecoder.unmarshall(context, null, n, null, String.class);
-            fail("Should have received a ProtocolException");
-        } catch (ProtocolException pe) {
-            //Expected Exception
-        } catch (Exception ex) {
-            fail("Should have received a ProtocolException, not: " + ex);
-        }
-        
-        // Now test schema validation during unmarshaling
-        elName = new QName(wrapperAnnotation.targetNamespace(),
-                           "stringStruct");
-        // Create an XML Tree of
-        // <StringStruct><arg1>World</arg1></StringStruct>
-//         elNode = soapElFactory.createElement(elName);
-//         elNode.addNamespaceDeclaration("", elName.getNamespaceURI());
-        elNode = getTestSOAPElement(elName);
-        str = new String("World");
-        elNode.addChildElement("arg1").setValue(str);
-        // Should unmarshal without problems when no schema used.
-        obj = JAXBEncoderDecoder.unmarshall(context, null, elNode,  elName,
-            Class.forName("org.apache.hello_world_soap_http.types.StringStruct"));
-        assertNotNull(obj);
-        assertEquals(StringStruct.class,  obj.getClass());
-        assertEquals(str, ((StringStruct)obj).getArg1());
-        try {
-            // unmarshal with schema should raise exception.
-            obj = JAXBEncoderDecoder.unmarshall(context, schema, elNode,  elName,
-                Class.forName("org.apache.hello_world_soap_http.types.StringStruct"));
-            fail("Should have thrown a ProtocolException");
-        } catch (ProtocolException ex) {
-            // expected - schema validation should fail.
-        }
-    }
-
-    public void testUnmarshallWithoutClzInfo() throws Exception {
-        QName elName = new QName(wrapperAnnotation.targetNamespace(),
-                                 wrapperAnnotation.localName());
-        
-
-        SOAPElement elNode = getTestSOAPElement(elName);
-        String str = new String("Hello Test");
-        elNode.addChildElement("requestType").setValue(str);
-
-        Object obj = JAXBEncoderDecoder.unmarshall(context, null, elNode);
-        assertNotNull(obj);
-        assertEquals(GreetMe.class,  obj.getClass());
-        assertEquals(str, ((GreetMe)obj).getRequestType());
-    }
-
-    public void testMarshallWithoutQNameInfo() throws Exception {
-        GreetMe obj = new GreetMe();
-        obj.setRequestType("Hello");
-        
-        ByteArrayOutputStream baos = new ByteArrayOutputStream();
-        XMLOutputFactory opFactory = XMLOutputFactory.newInstance();
-        opFactory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, Boolean.TRUE);
-        XMLEventWriter writer = opFactory.createXMLEventWriter(baos);
-
-        //STARTDOCUMENT/ENDDOCUMENT is not required
-        //writer.add(eFactory.createStartDocument("utf-8", "1.0"));        
-        JAXBEncoderDecoder.marshall(context, null, obj, writer);
-        //writer.add(eFactory.createEndDocument());
-        writer.flush();
-        writer.close();
-        
-        //System.out.println(baos.toString());
-        
-        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
-        XMLInputFactory ipFactory = XMLInputFactory.newInstance();
-        XMLEventReader reader = ipFactory.createXMLEventReader(bais);
-        
-        Unmarshaller um = context.createUnmarshaller();        
-        Object val = um.unmarshal(reader, GreetMe.class);
-        assertTrue(val instanceof JAXBElement);
-        val = ((JAXBElement)val).getValue();
-        assertTrue(val instanceof GreetMe);
-        assertEquals(obj.getRequestType(), 
-                     ((GreetMe)val).getRequestType());
-    }
-    
-    public void testGetClassFromType() throws Exception {
-        Method testByte = TestUtil.getMethod(TypeTestPortType.class, "testByte");
-        Type[] genericParameterTypes = testByte.getGenericParameterTypes();
-        Class<?>[] paramTypes = testByte.getParameterTypes();
- 
-        int idx = 0;
-        for (Type t : genericParameterTypes) {
-            Class<?> cls = JAXBEncoderDecoder.getClassFromType(t);
-            assertTrue(cls.equals(paramTypes[idx]));
-            idx++;
-        }
-        
-        Method testBase64Binary = TestUtil.getMethod(TypeTestPortType.class, "testBase64Binary");
-        genericParameterTypes = testBase64Binary.getGenericParameterTypes();
-        paramTypes = testBase64Binary.getParameterTypes();
- 
-        idx = 0;
-        for (Type t : genericParameterTypes) {
-            Class<?> cls = JAXBEncoderDecoder.getClassFromType(t);
-            assertTrue(cls.equals(paramTypes[idx]));
-            idx++;
-        }
-    }
-}
-
+package org.apache.cxf.jaxb;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.InputStream;
+import java.lang.reflect.Method;
+import java.lang.reflect.Type;
+
+import javax.xml.XMLConstants;
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.Unmarshaller;
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPElement;
+import javax.xml.soap.SOAPFactory;
+import javax.xml.stream.XMLEventReader;
+import javax.xml.stream.XMLEventWriter;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLOutputFactory;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.validation.Schema;
+import javax.xml.validation.SchemaFactory;
+import javax.xml.ws.ProtocolException;
+import javax.xml.ws.RequestWrapper;
+
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+import junit.framework.TestCase;
+
+import org.apache.cxf.testutil.common.TestUtil;
+import org.apache.hello_world_soap_http.Greeter;
+import org.apache.hello_world_soap_http.types.GreetMe;
+import org.apache.hello_world_soap_http.types.StringStruct;
+import org.apache.type_test.doc.TypeTestPortType;
+
+/**
+ * JAXBEncoderDecoderTest
+ * @author apaibir
+ */
+public class JAXBEncoderDecoderTest extends TestCase {
+    public static final QName  SOAP_ENV = 
+            new QName("http://schemas.xmlsoap.org/soap/envelope/", "Envelope");
+    public static final QName  SOAP_BODY = 
+            new QName("http://schemas.xmlsoap.org/soap/envelope/", "Body");
+
+    RequestWrapper wrapperAnnotation;
+    JAXBContext context;
+    Schema schema;
+    
+    public JAXBEncoderDecoderTest(String arg0) {
+        super(arg0);
+    }
+
+    public static void main(String[] args) {
+        junit.textui.TestRunner.run(JAXBEncoderDecoderTest.class);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+
+        context = JAXBEncoderDecoder.createJAXBContextForClass(Greeter.class);
+        Method method = TestUtil.getMethod(Greeter.class, "greetMe");
+        wrapperAnnotation = method.getAnnotation(RequestWrapper.class);
+        
+        InputStream is =  getClass().getResourceAsStream("resources/StringStruct.xsd");
+        StreamSource schemaSource = new StreamSource(is);
+        assertNotNull(schemaSource);
+        SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
+        schema = factory.newSchema(schemaSource);
+        assertNotNull(schema);
+    }
+
+    public void testMarshallIntoDOM() throws Exception {
+        String str = new String("Hello");
+        QName inCorrectElName = new QName("http://test_jaxb_marshall", "requestType");
+        SOAPFactory soapElFactory = SOAPFactory.newInstance();
+        Element elNode = soapElFactory.createElement(inCorrectElName);
+        assertNotNull(elNode);
+
+        Node node;
+        try {
+            JAXBEncoderDecoder.marshall(context, null, null, inCorrectElName,  elNode);
+            fail("Should have thrown a ProtocolException");
+        } catch (ProtocolException ex) {
+            //expected - not a valid object
+        }
+
+        GreetMe obj = new GreetMe();
+        obj.setRequestType("Hello");
+        QName elName = new QName(wrapperAnnotation.targetNamespace(),
+                                 wrapperAnnotation.localName());
+        JAXBEncoderDecoder.marshall(context, null, obj, elName, elNode);
+        node = elNode.getLastChild();
+        //The XML Tree Looks like
+        //<GreetMe><requestType>Hello</requestType></GreetMe>
+        assertEquals(Node.ELEMENT_NODE, node.getNodeType());
+        Node childNode = node.getFirstChild();
+        assertEquals(Node.ELEMENT_NODE, childNode.getNodeType());
+        childNode = childNode.getFirstChild();
+        assertEquals(Node.TEXT_NODE, childNode.getNodeType());
+        assertEquals(str, childNode.getNodeValue());
+
+        // Now test schema validation during marshaling
+        StringStruct stringStruct = new StringStruct();
+        // Don't initialize one of the structure members.
+        //stringStruct.setArg0("hello");
+        stringStruct.setArg1("world");
+        // Marshal without the schema should work.
+        JAXBEncoderDecoder.marshall(context, null, stringStruct, elName,  elNode);
+        try {
+            // Marshal with the schema should get an exception.
+            JAXBEncoderDecoder.marshall(context, schema, stringStruct, elName,  elNode);
+            fail("Marshal with schema should have thrown a ProtocolException");
+        } catch (ProtocolException ex) {
+            //expected - not a valid object
+        }
+    }
+
+    public void testMarshallIntoStax() throws Exception {
+        GreetMe obj = new GreetMe();
+        obj.setRequestType("Hello");
+        QName elName = new QName(wrapperAnnotation.targetNamespace(),
+                                 wrapperAnnotation.localName());
+        
+        ByteArrayOutputStream baos = new ByteArrayOutputStream();
+        XMLOutputFactory opFactory = XMLOutputFactory.newInstance();
+        opFactory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, Boolean.TRUE);
+        XMLEventWriter writer = opFactory.createXMLEventWriter(baos);
+
+        //STARTDOCUMENT/ENDDOCUMENT is not required
+        //writer.add(eFactory.createStartDocument("utf-8", "1.0"));        
+        JAXBEncoderDecoder.marshall(context, null, obj, elName, writer);
+        //writer.add(eFactory.createEndDocument());
+        writer.flush();
+        writer.close();
+        
+        //System.out.println(baos.toString());
+        
+        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+        XMLInputFactory ipFactory = XMLInputFactory.newInstance();
+        XMLEventReader reader = ipFactory.createXMLEventReader(bais);
+        
+        Unmarshaller um = context.createUnmarshaller();        
+        Object val = um.unmarshal(reader, GreetMe.class);
+        assertTrue(val instanceof JAXBElement);
+        val = ((JAXBElement)val).getValue();
+        assertTrue(val instanceof GreetMe);
+        assertEquals(obj.getRequestType(), 
+                     ((GreetMe)val).getRequestType());
+    }
+
+    public void testUnmarshallFromStax() throws Exception {
+        QName elName = new QName(wrapperAnnotation.targetNamespace(),
+                                 wrapperAnnotation.localName());
+        
+        InputStream is =  getClass().getResourceAsStream("resources/GreetMeDocLiteralReq.xml");
+        XMLInputFactory factory = XMLInputFactory.newInstance();
+        XMLEventReader reader = 
+            factory.createXMLEventReader(is);
+
+        QName[] tags = {SOAP_ENV, SOAP_BODY};
+        StaxEventFilter filter = new StaxEventFilter(tags);
+        reader = factory.createFilteredReader(reader, filter);
+
+        //Remove START_DOCUMENT & START_ELEMENT pertaining to Envelope and Body Tags.
+
+        Object val = JAXBEncoderDecoder.unmarshall(context, null, reader, elName, GreetMe.class);
+        assertNotNull(val);
+        assertTrue(val instanceof GreetMe);
+        assertEquals("TestSOAPInputPMessage", 
+                     ((GreetMe)val).getRequestType());
+
+        is.close();
+    }
+    
+    public void testMarshalRPCLit() throws Exception {
+        SOAPFactory soapElFactory = SOAPFactory.newInstance();
+        QName elName = new QName("http://test_jaxb_marshall", "in");
+        SOAPElement elNode = soapElFactory.createElement(elName);
+        JAXBEncoderDecoder.marshall(context, null, new String("TestSOAPMessage"), elName,  elNode);
+        
+        assertNotNull(elNode.getChildNodes());
+        assertEquals("TestSOAPMessage", elNode.getFirstChild().getFirstChild().getNodeValue());
+    }
+
+    private SOAPElement getTestSOAPElement(QName elName) throws Exception {
+        //Create a XML Tree of
+        //<GreetMe><requestType>Hello</requestType></GreetMe>
+        SOAPFactory soapElFactory = SOAPFactory.newInstance();
+        SOAPElement elNode = soapElFactory.createElement(elName);
+        elNode.addNamespaceDeclaration("", elName.getNamespaceURI()); 
+
+        return elNode;
+    }
+    
+    public void testUnMarshall() throws Exception {
+        //Hello World Wsdl generated namespace
+        QName elName = new QName(wrapperAnnotation.targetNamespace(),
+                                 wrapperAnnotation.localName());
+
+        SOAPElement elNode = getTestSOAPElement(elName);
+        String str = new String("Hello Test");
+        elNode.addChildElement("requestType").setValue(str);
+
+        
+        Object obj = JAXBEncoderDecoder.unmarshall(context, null,
+                         elNode, elName, Class.forName(wrapperAnnotation.className()));
+        assertNotNull(obj);
+
+        //Add a Node and then test
+        assertEquals(GreetMe.class,  obj.getClass());
+        assertEquals(str, ((GreetMe)obj).getRequestType());
+        
+        Node n = null;
+        try {
+            JAXBEncoderDecoder.unmarshall(context, null, n, null, String.class);
+            fail("Should have received a ProtocolException");
+        } catch (ProtocolException pe) {
+            //Expected Exception
+        } catch (Exception ex) {
+            fail("Should have received a ProtocolException, not: " + ex);
+        }
+        
+        // Now test schema validation during unmarshaling
+        elName = new QName(wrapperAnnotation.targetNamespace(),
+                           "stringStruct");
+        // Create an XML Tree of
+        // <StringStruct><arg1>World</arg1></StringStruct>
+//         elNode = soapElFactory.createElement(elName);
+//         elNode.addNamespaceDeclaration("", elName.getNamespaceURI());
+        elNode = getTestSOAPElement(elName);
+        str = new String("World");
+        elNode.addChildElement("arg1").setValue(str);
+        // Should unmarshal without problems when no schema used.
+        obj = JAXBEncoderDecoder.unmarshall(context, null, elNode,  elName,
+            Class.forName("org.apache.hello_world_soap_http.types.StringStruct"));
+        assertNotNull(obj);
+        assertEquals(StringStruct.class,  obj.getClass());
+        assertEquals(str, ((StringStruct)obj).getArg1());
+        try {
+            // unmarshal with schema should raise exception.
+            obj = JAXBEncoderDecoder.unmarshall(context, schema, elNode,  elName,
+                Class.forName("org.apache.hello_world_soap_http.types.StringStruct"));
+            fail("Should have thrown a ProtocolException");
+        } catch (ProtocolException ex) {
+            // expected - schema validation should fail.
+        }
+    }
+
+    public void testUnmarshallWithoutClzInfo() throws Exception {
+        QName elName = new QName(wrapperAnnotation.targetNamespace(),
+                                 wrapperAnnotation.localName());
+        
+
+        SOAPElement elNode = getTestSOAPElement(elName);
+        String str = new String("Hello Test");
+        elNode.addChildElement("requestType").setValue(str);
+
+        Object obj = JAXBEncoderDecoder.unmarshall(context, null, elNode);
+        assertNotNull(obj);
+        assertEquals(GreetMe.class,  obj.getClass());
+        assertEquals(str, ((GreetMe)obj).getRequestType());
+    }
+
+    public void testMarshallWithoutQNameInfo() throws Exception {
+        GreetMe obj = new GreetMe();
+        obj.setRequestType("Hello");
+        
+        ByteArrayOutputStream baos = new ByteArrayOutputStream();
+        XMLOutputFactory opFactory = XMLOutputFactory.newInstance();
+        opFactory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, Boolean.TRUE);
+        XMLEventWriter writer = opFactory.createXMLEventWriter(baos);
+
+        //STARTDOCUMENT/ENDDOCUMENT is not required
+        //writer.add(eFactory.createStartDocument("utf-8", "1.0"));        
+        JAXBEncoderDecoder.marshall(context, null, obj, writer);
+        //writer.add(eFactory.createEndDocument());
+        writer.flush();
+        writer.close();
+        
+        //System.out.println(baos.toString());
+        
+        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+        XMLInputFactory ipFactory = XMLInputFactory.newInstance();
+        XMLEventReader reader = ipFactory.createXMLEventReader(bais);
+        
+        Unmarshaller um = context.createUnmarshaller();        
+        Object val = um.unmarshal(reader, GreetMe.class);
+        assertTrue(val instanceof JAXBElement);
+        val = ((JAXBElement)val).getValue();
+        assertTrue(val instanceof GreetMe);
+        assertEquals(obj.getRequestType(), 
+                     ((GreetMe)val).getRequestType());
+    }
+    
+    public void testGetClassFromType() throws Exception {
+        Method testByte = TestUtil.getMethod(TypeTestPortType.class, "testByte");
+        Type[] genericParameterTypes = testByte.getGenericParameterTypes();
+        Class<?>[] paramTypes = testByte.getParameterTypes();
+ 
+        int idx = 0;
+        for (Type t : genericParameterTypes) {
+            Class<?> cls = JAXBEncoderDecoder.getClassFromType(t);
+            assertTrue(cls.equals(paramTypes[idx]));
+            idx++;
+        }
+        
+        Method testBase64Binary = TestUtil.getMethod(TypeTestPortType.class, "testBase64Binary");
+        genericParameterTypes = testBase64Binary.getGenericParameterTypes();
+        paramTypes = testBase64Binary.getParameterTypes();
+ 
+        idx = 0;
+        for (Type t : genericParameterTypes) {
+            Class<?> cls = JAXBEncoderDecoder.getClassFromType(t);
+            assertTrue(cls.equals(paramTypes[idx]));
+            idx++;
+        }
+    }
+}
+

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBEncoderDecoderTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBEncoderDecoderTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/StaxEventFilter.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/StaxEventFilter.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/StaxEventFilter.java (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/StaxEventFilter.java Fri Aug 25 06:16:36 2006
@@ -1,43 +1,43 @@
-package org.apache.cxf.jaxb;
-
-import javax.xml.namespace.QName;
-import javax.xml.stream.EventFilter;
-import javax.xml.stream.events.EndElement;
-import javax.xml.stream.events.StartElement;
-import javax.xml.stream.events.XMLEvent;
-
-public class StaxEventFilter implements EventFilter {
-    private QName[] tags;
-
-    public StaxEventFilter(QName[] eventsToReject) {
-        tags = eventsToReject;
-    }
-
-    public boolean accept(XMLEvent event) {
-        if (event.isStartDocument() 
-            || event.isEndDocument()) {
-            return false;
-        }
-
-        if (event.isStartElement()) {
-            StartElement startEl = event.asStartElement();
-            QName elName = startEl.getName();
-            for (QName tag : tags) {
-                if (elName.equals(tag)) {
-                    return false;
-                }
-            }
-        }
-
-        if (event.isEndElement()) {
-            EndElement endEl = event.asEndElement();
-            QName elName = endEl.getName();
-            for (QName tag : tags) {
-                if (elName.equals(tag)) {
-                    return false;
-                }
-            }
-        }
-        return true;
-    }
-}
+package org.apache.cxf.jaxb;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.EventFilter;
+import javax.xml.stream.events.EndElement;
+import javax.xml.stream.events.StartElement;
+import javax.xml.stream.events.XMLEvent;
+
+public class StaxEventFilter implements EventFilter {
+    private QName[] tags;
+
+    public StaxEventFilter(QName[] eventsToReject) {
+        tags = eventsToReject;
+    }
+
+    public boolean accept(XMLEvent event) {
+        if (event.isStartDocument() 
+            || event.isEndDocument()) {
+            return false;
+        }
+
+        if (event.isStartElement()) {
+            StartElement startEl = event.asStartElement();
+            QName elName = startEl.getName();
+            for (QName tag : tags) {
+                if (elName.equals(tag)) {
+                    return false;
+                }
+            }
+        }
+
+        if (event.isEndElement()) {
+            EndElement endEl = event.asEndElement();
+            QName elName = endEl.getName();
+            for (QName tag : tags) {
+                if (elName.equals(tag)) {
+                    return false;
+                }
+            }
+        }
+        return true;
+    }
+}

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/StaxEventFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/StaxEventFilter.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/TestBase.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/TestBase.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/TestBase.java (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/TestBase.java Fri Aug 25 06:16:36 2006
@@ -1,125 +1,125 @@
-package org.apache.cxf.jaxb;
-
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.lang.reflect.Method;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLStreamReader;
-import javax.xml.stream.XMLStreamWriter;
-
-import junit.framework.TestCase;
-
-import org.apache.cxf.Bus;
-import org.apache.cxf.binding.Binding;
-import org.apache.cxf.binding.BindingFactory;
-import org.apache.cxf.binding.BindingFactoryManager;
-import org.apache.cxf.bus.CXFBusFactory;
-import org.apache.cxf.endpoint.Endpoint;
-import org.apache.cxf.endpoint.EndpointImpl;
-import org.apache.cxf.interceptor.WrappedInInterceptor;
-import org.apache.cxf.message.Exchange;
-import org.apache.cxf.message.ExchangeImpl;
-import org.apache.cxf.message.MessageImpl;
-import org.apache.cxf.phase.PhaseInterceptorChain;
-import org.apache.cxf.service.Service;
-import org.apache.cxf.service.model.BindingInfo;
-import org.apache.cxf.service.model.BindingOperationInfo;
-import org.apache.cxf.service.model.EndpointInfo;
-import org.apache.cxf.service.model.ServiceInfo;
-import org.apache.cxf.staxutils.StaxUtils;
-import org.apache.cxf.wsdl11.WSDLServiceFactory;
-import org.apache.hello_world_soap_http.Greeter;
-
-import org.easymock.classextension.IMocksControl;
-
-import static org.easymock.EasyMock.expect;
-import static org.easymock.classextension.EasyMock.createNiceControl;
-
-public class TestBase extends TestCase {
-
-    PhaseInterceptorChain chain;
-    MessageImpl message;
-    Bus bus;
-    ServiceInfo serviceInfo;
-    BindingInfo bindingInfo;
-    Service service;
-    EndpointInfo endpointInfo;
-    EndpointImpl endpoint;
-    BindingOperationInfo operation;
-
-    public void setUp() throws Exception {
-        bus = new CXFBusFactory().createBus();
-
-        BindingFactoryManager bfm = bus.getExtension(BindingFactoryManager.class);
-
-        IMocksControl control = createNiceControl();
-        BindingFactory bf = control.createMock(BindingFactory.class);
-        Binding binding = control.createMock(Binding.class);
-        expect(bf.createBinding(null)).andStubReturn(binding);
-
-        bfm.registerBindingFactory("http://schemas.xmlsoap.org/wsdl/soap/", bf);
-
-        String ns = "http://apache.org/hello_world_soap_http";
-        WSDLServiceFactory factory = new WSDLServiceFactory(bus, getClass()
-            .getResource("/org/apache/cxf/jaxb/resources/wsdl/hello_world.wsdl"),
-                                                            new QName(ns, "SOAPService"));
-
-        service = factory.create();
-        endpointInfo = service.getServiceInfo().getEndpoint(new QName(ns, "SoapPort"));
-        endpoint = new EndpointImpl(bus, service, endpointInfo);
-        service.setDataReaderFactory(getTestReaderFactory(Greeter.class));
-        service.setDataWriterFactory(getTestWriterFactory(Greeter.class));
-
-        operation = endpointInfo.getBinding().getOperation(new QName(ns, "greetMe"));
-        operation.getOperationInfo().setProperty(WrappedInInterceptor.SINGLE_WRAPPED_PART, Boolean.TRUE);
-
-        message = new MessageImpl();
-        Exchange exchange = new ExchangeImpl();
-        message.setExchange(exchange);
-
-        exchange.put(Service.class, service);
-        exchange.put(Endpoint.class, endpoint);
-        exchange.put(Binding.class, endpoint.getBinding());
-    }
-
-    public void tearDown() throws Exception {
-    }
-
-    public InputStream getTestStream(Class<?> clz, String file) {
-        return clz.getResourceAsStream(file);
-    }
-
-    public XMLStreamReader getXMLStreamReader(InputStream is) {
-        return StaxUtils.createXMLStreamReader(is);
-    }
-
-    public XMLStreamWriter getXMLStreamWriter(OutputStream os) {
-        return StaxUtils.createXMLStreamWriter(os);
-    }
-
-    public Method getTestMethod(Class<?> sei, String methodName) {
-        Method[] iMethods = sei.getMethods();
-        for (Method m : iMethods) {
-            if (methodName.equals(m.getName())) {
-                return m;
-            }
-        }
-        return null;
-    }
-
-    protected JAXBDataReaderFactory getTestReaderFactory(Class<?> clz) throws Exception {
-        JAXBContext ctx = JAXBEncoderDecoder.createJAXBContextForClass(clz);
-        JAXBDataReaderFactory readerFacotry = new JAXBDataReaderFactory();
-        readerFacotry.setJAXBContext(ctx);
-        return readerFacotry;
-    }
-
-    protected JAXBDataWriterFactory getTestWriterFactory(Class<?> clz) throws Exception {
-        JAXBContext ctx = JAXBEncoderDecoder.createJAXBContextForClass(clz);
-        JAXBDataWriterFactory writerFacotry = new JAXBDataWriterFactory();
-        writerFacotry.setJAXBContext(ctx);
-        return writerFacotry;
-    }
-}
+package org.apache.cxf.jaxb;
+
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.lang.reflect.Method;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
+
+import junit.framework.TestCase;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.binding.Binding;
+import org.apache.cxf.binding.BindingFactory;
+import org.apache.cxf.binding.BindingFactoryManager;
+import org.apache.cxf.bus.CXFBusFactory;
+import org.apache.cxf.endpoint.Endpoint;
+import org.apache.cxf.endpoint.EndpointImpl;
+import org.apache.cxf.interceptor.WrappedInInterceptor;
+import org.apache.cxf.message.Exchange;
+import org.apache.cxf.message.ExchangeImpl;
+import org.apache.cxf.message.MessageImpl;
+import org.apache.cxf.phase.PhaseInterceptorChain;
+import org.apache.cxf.service.Service;
+import org.apache.cxf.service.model.BindingInfo;
+import org.apache.cxf.service.model.BindingOperationInfo;
+import org.apache.cxf.service.model.EndpointInfo;
+import org.apache.cxf.service.model.ServiceInfo;
+import org.apache.cxf.staxutils.StaxUtils;
+import org.apache.cxf.wsdl11.WSDLServiceFactory;
+import org.apache.hello_world_soap_http.Greeter;
+
+import org.easymock.classextension.IMocksControl;
+
+import static org.easymock.EasyMock.expect;
+import static org.easymock.classextension.EasyMock.createNiceControl;
+
+public class TestBase extends TestCase {
+
+    PhaseInterceptorChain chain;
+    MessageImpl message;
+    Bus bus;
+    ServiceInfo serviceInfo;
+    BindingInfo bindingInfo;
+    Service service;
+    EndpointInfo endpointInfo;
+    EndpointImpl endpoint;
+    BindingOperationInfo operation;
+
+    public void setUp() throws Exception {
+        bus = new CXFBusFactory().createBus();
+
+        BindingFactoryManager bfm = bus.getExtension(BindingFactoryManager.class);
+
+        IMocksControl control = createNiceControl();
+        BindingFactory bf = control.createMock(BindingFactory.class);
+        Binding binding = control.createMock(Binding.class);
+        expect(bf.createBinding(null)).andStubReturn(binding);
+
+        bfm.registerBindingFactory("http://schemas.xmlsoap.org/wsdl/soap/", bf);
+
+        String ns = "http://apache.org/hello_world_soap_http";
+        WSDLServiceFactory factory = new WSDLServiceFactory(bus, getClass()
+            .getResource("/org/apache/cxf/jaxb/resources/wsdl/hello_world.wsdl"),
+                                                            new QName(ns, "SOAPService"));
+
+        service = factory.create();
+        endpointInfo = service.getServiceInfo().getEndpoint(new QName(ns, "SoapPort"));
+        endpoint = new EndpointImpl(bus, service, endpointInfo);
+        service.setDataReaderFactory(getTestReaderFactory(Greeter.class));
+        service.setDataWriterFactory(getTestWriterFactory(Greeter.class));
+
+        operation = endpointInfo.getBinding().getOperation(new QName(ns, "greetMe"));
+        operation.getOperationInfo().setProperty(WrappedInInterceptor.SINGLE_WRAPPED_PART, Boolean.TRUE);
+
+        message = new MessageImpl();
+        Exchange exchange = new ExchangeImpl();
+        message.setExchange(exchange);
+
+        exchange.put(Service.class, service);
+        exchange.put(Endpoint.class, endpoint);
+        exchange.put(Binding.class, endpoint.getBinding());
+    }
+
+    public void tearDown() throws Exception {
+    }
+
+    public InputStream getTestStream(Class<?> clz, String file) {
+        return clz.getResourceAsStream(file);
+    }
+
+    public XMLStreamReader getXMLStreamReader(InputStream is) {
+        return StaxUtils.createXMLStreamReader(is);
+    }
+
+    public XMLStreamWriter getXMLStreamWriter(OutputStream os) {
+        return StaxUtils.createXMLStreamWriter(os);
+    }
+
+    public Method getTestMethod(Class<?> sei, String methodName) {
+        Method[] iMethods = sei.getMethods();
+        for (Method m : iMethods) {
+            if (methodName.equals(m.getName())) {
+                return m;
+            }
+        }
+        return null;
+    }
+
+    protected JAXBDataReaderFactory getTestReaderFactory(Class<?> clz) throws Exception {
+        JAXBContext ctx = JAXBEncoderDecoder.createJAXBContextForClass(clz);
+        JAXBDataReaderFactory readerFacotry = new JAXBDataReaderFactory();
+        readerFacotry.setJAXBContext(ctx);
+        return readerFacotry;
+    }
+
+    protected JAXBDataWriterFactory getTestWriterFactory(Class<?> clz) throws Exception {
+        JAXBContext ctx = JAXBEncoderDecoder.createJAXBContextForClass(clz);
+        JAXBDataWriterFactory writerFacotry = new JAXBDataWriterFactory();
+        writerFacotry.setJAXBContext(ctx);
+        return writerFacotry;
+    }
+}

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/TestBase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/TestBase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



Mime
View raw message