You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by dj...@apache.org on 2007/01/17 19:34:15 UTC

svn commit: r497117 [1/2] - in /geronimo/server/trunk/testsuite/webservices-testsuite: jaxb-tests/ jaxb-tests/jaxb-client/ jaxb-tests/jaxb-client/src/ jaxb-tests/jaxb-client/src/main/ jaxb-tests/jaxb-client/src/main/java/ jaxb-tests/jaxb-client/src/mai...

Author: djencks
Date: Wed Jan 17 10:34:12 2007
New Revision: 497117

URL: http://svn.apache.org/viewvc?view=rev&rev=497117
Log:
GERONIMO-2739 app client jaxb, jaxr, and stax tests

Added:
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/pom.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBClient.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBTest.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/Account.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/ObjectFactory.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/account.xsd   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/package-info.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/application-client.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/geronimo-application-client.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/org/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/org/apache/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/org/apache/geronimo/testsuite/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/org/apache/geronimo/testsuite/testset/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXBTest.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/pom.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRClient.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRTest.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/application-client.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/geronimo-application-client.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/org/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/org/apache/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/org/apache/geronimo/testsuite/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/org/apache/geronimo/testsuite/testset/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXRTest.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/pom.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/StaxClient.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/StaxTest.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/resources/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/resources/META-INF/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/resources/META-INF/application-client.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/resources/META-INF/geronimo-application-client.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/test/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/test/java/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/test/java/org/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/test/java/org/apache/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/test/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/test/java/org/apache/geronimo/testsuite/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/test/java/org/apache/geronimo/testsuite/testset/
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientStaxTest.java   (with props)
Modified:
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/pom.xml
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/pom.xml
    geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/pom.xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/pom.xml?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/pom.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/pom.xml Wed Jan 17 10:34:12 2007
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.testsuite</groupId>
+        <artifactId>jaxb-tests</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>jaxb-client</artifactId>
+    <name>Geronimo TestSuite :: WebServices TestSuite :: JAXB Client</name>
+    <packaging>jar</packaging>
+
+    <description>This project executes testcases for your testsuite</description>
+
+    <properties>
+       <clientLogFile>${basedir}/target/client.log</clientLogFile>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>javax.xml.bind</groupId>
+            <artifactId>jaxb-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        <manifest>
+                            <mainClass>org.apache.geronimo.test.JAXBClient</mainClass>
+                        </manifest>
+                    </archive>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.geronimo.plugins</groupId>
+                <artifactId>testsuite-maven-plugin</artifactId>
+                <version>${version}</version>
+                <executions>
+                    <execution>
+                        <id>generate-surefire-xml</id>
+                        <phase>install</phase>
+                        <goals>
+                            <goal>generate-surefire-xml</goal>
+                        </goals>
+                        <!-- 
+                        Merging the configuration of this plugin with the one it inherits.
+                        Updating the reports in the grandparent directly as we'd have missed the boat for the parent's install phase.
+                        This plugin executes twice in Maven 2.0.4 (http://jira.codehaus.org/browse/MNG-2221)
+                        Maven.2.0.5 will fix it soon.
+                        -->
+                        <configuration>
+                            <grandParent>true</grandParent>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.geronimo.genesis.plugins</groupId>
+                <artifactId>tools-maven-plugin</artifactId>
+                <extensions>true</extensions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <systemProperties>
+                        <property>
+                            <name>clientLogFile</name>
+                            <value>${clientLogFile}</value>
+                        </property>
+                    </systemProperties>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.geronimo.plugins</groupId>
+                <artifactId>geronimo-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>deploy-client</id>
+                        <phase>pre-integration-test</phase>
+                        <goals>
+                            <goal>deploy-module</goal>
+                        </goals>
+                        <configuration>
+                            <moduleArchive>${project.build.directory}/${artifactId}-${version}.jar</moduleArchive>
+                        </configuration>
+                    </execution>
+
+                    <execution>
+                        <phase>integration-test</phase>
+                        <id>run-client</id>
+                        <goals>
+                            <goal>run-client</goal>
+                        </goals>
+                        <configuration>
+                            <moduleId>JEE5/JAXBClient/1.1/car</moduleId>
+                            <logOutput>true</logOutput>
+                            <logFile>${clientLogFile}</logFile>
+                        </configuration>
+                    </execution>
+
+                    <execution>
+                        <id>undeploy-client-as-moduleId</id>
+                        <phase>post-integration-test</phase>
+                        <goals>
+                            <goal>undeploy-module</goal>
+                        </goals>
+                        <configuration>
+                            <moduleId>JEE5/JAXBClientServer/1.1/car</moduleId>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
+

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBClient.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBClient.java?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBClient.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBClient.java Wed Jan 17 10:34:12 2007
@@ -0,0 +1,45 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.geronimo.test;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+public class JAXBClient {
+
+    public static void main(String [] args) throws Exception {
+
+        try {
+            test();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        
+        // needs to be forced because of a bug
+        System.exit(0);
+    }
+
+    public static void test() throws Exception {
+        JAXBTest t = new JAXBTest();
+        System.out.println(t.getImplementation());
+        t.testMarshall();
+        t.testUnmarshall();
+    }
+    
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBClient.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBClient.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBClient.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBTest.java?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBTest.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBTest.java Wed Jan 17 10:34:12 2007
@@ -0,0 +1,86 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.geronimo.test;
+
+import java.io.StringWriter;
+import java.io.StringReader;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.Marshaller;
+import javax.xml.bind.Unmarshaller;
+
+import org.apache.geronimo.test.generated.Account;
+
+/**
+ * Performs basic tests using the JAXB 2.0 API. 
+ */
+public class JAXBTest {
+
+    private static final String EXPECTED_OUTPUT = 
+        "<FirstName>foo</FirstName><LastName>bar</LastName>";
+
+    private static final String INPUT =
+        "<foo:Account xmlns:foo=\"http://geronimo.apache.org\">\r\n" +
+        "<FirstName>first</FirstName>\r\n" +
+        "<LastName>last</LastName>\r\n" +
+        "</foo:Account>\r\n";
+    
+    JAXBContext jc = null;
+
+    public JAXBTest() throws Exception {
+        this.jc = 
+            JAXBContext.newInstance("org.apache.geronimo.test.generated");
+    }
+
+    public String getImplementation() {
+        return this.jc.getClass().getName();
+    }
+
+    public void testMarshall() throws Exception {
+        
+        Account bean = new Account();
+        bean.setFirstName("foo");
+        bean.setLastName("bar");
+
+        Marshaller m = this.jc.createMarshaller();
+        StringWriter writer = new StringWriter();
+        m.marshal(bean, writer);
+        writer.flush();
+        
+        String xml = writer.toString();
+        System.out.println(xml);
+
+        if (xml.indexOf(EXPECTED_OUTPUT) == -1) {
+            throw new Exception("Unexpected xml generated");
+        }
+    }
+
+    public void testUnmarshall() throws Exception {
+        
+        Unmarshaller m = this.jc.createUnmarshaller();
+        Account bean = (Account)m.unmarshal(new StringReader(INPUT));
+        
+        if (!(bean.getFirstName().equals("first") &&
+              bean.getLastName().equals("last"))) {
+            throw new Exception("Unexpected data");
+        }
+    }
+
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/JAXBTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/Account.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/Account.java?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/Account.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/Account.java Wed Jan 17 10:34:12 2007
@@ -0,0 +1,113 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+
+package org.apache.geronimo.test.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="FirstName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="LastName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "firstName",
+    "lastName"
+})
+@XmlRootElement(name = "Account")
+public class Account {
+
+    @XmlElement(name = "FirstName", required = true)
+    protected String firstName;
+    @XmlElement(name = "LastName", required = true)
+    protected String lastName;
+
+    /**
+     * Gets the value of the firstName property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getFirstName() {
+        return firstName;
+    }
+
+    /**
+     * Sets the value of the firstName property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setFirstName(String value) {
+        this.firstName = value;
+    }
+
+    /**
+     * Gets the value of the lastName property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getLastName() {
+        return lastName;
+    }
+
+    /**
+     * Sets the value of the lastName property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setLastName(String value) {
+        this.lastName = value;
+    }
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/Account.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/Account.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/Account.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/ObjectFactory.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/ObjectFactory.java?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/ObjectFactory.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/ObjectFactory.java Wed Jan 17 10:34:12 2007
@@ -0,0 +1,61 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+
+package org.apache.geronimo.test.generated;
+
+import javax.xml.bind.annotation.XmlRegistry;
+
+
+/**
+ * This object contains factory methods for each 
+ * Java content interface and Java element interface 
+ * generated in the org.apache.geronimo.test.generated package. 
+ * <p>An ObjectFactory allows you to programatically 
+ * construct new instances of the Java representation 
+ * for XML content. The Java representation of XML 
+ * content can consist of schema derived interfaces 
+ * and classes representing the binding of schema 
+ * type definitions, element declarations and model 
+ * groups.  Factory methods for each of these are 
+ * provided in this class.
+ * 
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.geronimo.test.generated
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link Account }
+     * 
+     */
+    public Account createAccount() {
+        return new Account();
+    }
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/ObjectFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/ObjectFactory.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/ObjectFactory.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/account.xsd
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/account.xsd?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/account.xsd (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/account.xsd Wed Jan 17 10:34:12 2007
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+            targetNamespace="http://geronimo.apache.org"
+            xmlns:tns="http://geronimo.apache.org">
+
+  <xsd:element name="Account">
+    <xsd:complexType>
+      <xsd:sequence>
+        <xsd:element name="FirstName" type="xsd:string"
+                     minOccurs="1"  maxOccurs="1"/>
+        <xsd:element name="LastName" type="xsd:string"
+                     minOccurs="1"  maxOccurs="1"/>
+      </xsd:sequence>
+    </xsd:complexType>
+  </xsd:element>
+
+</xsd:schema>

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/account.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/account.xsd
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/account.xsd
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/package-info.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/package-info.java?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/package-info.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/package-info.java Wed Jan 17 10:34:12 2007
@@ -0,0 +1,24 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://geronimo.apache.org")
+package org.apache.geronimo.test.generated;

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/package-info.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/package-info.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/java/org/apache/geronimo/test/generated/package-info.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/application-client.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/application-client.xml?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/application-client.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/application-client.xml Wed Jan 17 10:34:12 2007
@@ -0,0 +1,27 @@
+<?xml version="1.0"?> 
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+    
+<application-client xmlns="http://java.sun.com/xml/ns/j2ee"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/applicationclient_1_4.xsd"
+    version="1.4">
+
+    <display-name>JAXB Client</display-name>
+
+</application-client>
+

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/application-client.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/application-client.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/application-client.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/geronimo-application-client.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/geronimo-application-client.xml?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/geronimo-application-client.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/geronimo-application-client.xml Wed Jan 17 10:34:12 2007
@@ -0,0 +1,40 @@
+<?xml version="1.0"?> 
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<application-client
+   xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-client-1.2"
+   xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
+
+   <dep:client-environment>
+    <dep:moduleId>
+      <dep:groupId>JEE5</dep:groupId>
+      <dep:artifactId>JAXBClient</dep:artifactId>
+      <dep:version>1.1</dep:version>
+      <dep:type>car</dep:type>
+    </dep:moduleId>
+   </dep:client-environment>
+
+   <dep:server-environment> 
+    <dep:moduleId>
+      <dep:groupId>JEE5</dep:groupId>
+      <dep:artifactId>JAXBClientServer</dep:artifactId>
+      <dep:version>1.1</dep:version>
+      <dep:type>car</dep:type>
+    </dep:moduleId>
+   </dep:server-environment>
+
+</application-client>

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/geronimo-application-client.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/geronimo-application-client.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/main/resources/META-INF/geronimo-application-client.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXBTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXBTest.java?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXBTest.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXBTest.java Wed Jan 17 10:34:12 2007
@@ -0,0 +1,61 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.geronimo.testsuite.testset;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.FileInputStream;
+
+import org.apache.geronimo.testsupport.TestSupport;
+import org.testng.annotations.Test;
+
+public class ClientJAXBTest extends TestSupport {
+
+    @Test
+    public void testClient() throws Exception {
+        String outputFile = System.getProperty("clientLogFile");
+        assertNotNull(outputFile);
+        FileInputStream in = null;
+        try {
+            in = new FileInputStream(outputFile);
+            BufferedReader reader = 
+                new BufferedReader(new InputStreamReader(in));
+            assertTrue("Implementation", 
+                       find(reader, "com.sun.xml.bind.v2.runtime.JAXBContextImpl"));
+        } finally {
+            if (in != null) {
+                in.close();
+            }
+        }
+    }
+
+    private boolean find(BufferedReader reader, String text) 
+        throws IOException {
+        String line = null;
+        while ((line = reader.readLine()) != null) {
+            System.out.println(line);
+            if (line.indexOf(text) != -1) {
+                return true;
+            }
+        }
+        return false;
+    }
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXBTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXBTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXBTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/pom.xml?view=diff&rev=497117&r1=497116&r2=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/pom.xml (original)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/pom.xml Wed Jan 17 10:34:12 2007
@@ -37,6 +37,7 @@
             <modules>
                 <module>jaxb-war</module>
                 <module>jaxb-ejb</module>
+                <module>jaxb-client</module>
             </modules>
         </profile>
     </profiles>

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/pom.xml?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/pom.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/pom.xml Wed Jan 17 10:34:12 2007
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.testsuite</groupId>
+        <artifactId>jaxr-tests</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>jaxr-client</artifactId>
+    <name>Geronimo TestSuite :: WebServices TestSuite :: JAXR Client</name>
+    <packaging>jar</packaging>
+
+    <description>This project executes testcases for your testsuite</description>
+
+    <properties>
+       <clientLogFile>${basedir}/target/client.log</clientLogFile>
+    </properties>
+
+    <dependencies>
+            <dependency>
+                <groupId>org.apache.geronimo.specs</groupId>
+                <artifactId>geronimo-jaxr_1.0_spec</artifactId>
+                <scope>provided</scope>
+            </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        <manifest>
+                            <mainClass>org.apache.geronimo.test.JAXRClient</mainClass>
+                        </manifest>
+                    </archive>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <systemProperties>
+                        <property>
+                            <name>clientLogFile</name>
+                            <value>${clientLogFile}</value>
+                        </property>
+                    </systemProperties>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.geronimo.plugins</groupId>
+                <artifactId>testsuite-maven-plugin</artifactId>
+                <version>${version}</version>
+                <executions>
+                    <execution>
+                        <id>generate-surefire-xml</id>
+                        <phase>install</phase>
+                        <goals>
+                            <goal>generate-surefire-xml</goal>
+                        </goals>
+                        <!-- 
+                        Merging the configuration of this plugin with the one it inherits.
+                        Updating the reports in the grandparent directly as we'd have missed the boat for the parent's install phase.
+                        This plugin executes twice in Maven 2.0.4 (http://jira.codehaus.org/browse/MNG-2221)
+                        Maven.2.0.5 will fix it soon.
+                        -->
+                        <configuration>
+                            <grandParent>true</grandParent>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.geronimo.genesis.plugins</groupId>
+                <artifactId>tools-maven-plugin</artifactId>
+                <extensions>true</extensions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.geronimo.plugins</groupId>
+                <artifactId>geronimo-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>deploy-client</id>
+                        <phase>pre-integration-test</phase>
+                        <goals>
+                            <goal>deploy-module</goal>
+                        </goals>
+                        <configuration>
+                            <moduleArchive>${project.build.directory}/${artifactId}-${version}.jar</moduleArchive>
+                        </configuration>
+                    </execution>
+
+                    <execution>
+                        <phase>integration-test</phase>
+                        <id>run-client</id>
+                        <goals>
+                            <goal>run-client</goal>
+                        </goals>
+                        <configuration>
+                            <moduleId>JEE5/JAXRClient/1.1/car</moduleId>
+                            <logOutput>true</logOutput>
+                            <logFile>${clientLogFile}</logFile>
+                        </configuration>
+                    </execution>
+
+                    <execution>
+                        <id>undeploy-client-as-moduleId</id>
+                        <phase>post-integration-test</phase>
+                        <goals>
+                            <goal>undeploy-module</goal>
+                        </goals>
+                        <configuration>
+                            <moduleId>JEE5/JAXRClientServer/1.1/car</moduleId>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
+

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRClient.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRClient.java?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRClient.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRClient.java Wed Jan 17 10:34:12 2007
@@ -0,0 +1,43 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.geronimo.test;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+public class JAXRClient {
+
+    public static void main(String [] args) throws Exception {
+        try {
+            test();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        
+        // needs to be forced because of a bug
+        System.exit(0);
+    }
+
+    public static void test() throws Exception {
+        JAXRTest test = new JAXRTest();
+        System.out.println(test.getImplementation());
+        test.test();
+    }
+    
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRClient.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRClient.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRClient.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRTest.java?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRTest.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRTest.java Wed Jan 17 10:34:12 2007
@@ -0,0 +1,42 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.geronimo.test;
+
+import java.io.StringReader;
+import java.io.StringWriter;
+
+import javax.xml.registry.ConnectionFactory;
+
+public class JAXRTest {
+
+    private ConnectionFactory connFactory;
+
+    public JAXRTest() throws Exception {
+        this.connFactory = ConnectionFactory.newInstance(); 
+    }
+
+    public String getImplementation() {
+        return this.connFactory.getClass().getName();
+    }
+
+    public void test() throws Exception {
+        // Not sure what to do here
+    }
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/java/org/apache/geronimo/test/JAXRTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/application-client.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/application-client.xml?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/application-client.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/application-client.xml Wed Jan 17 10:34:12 2007
@@ -0,0 +1,27 @@
+<?xml version="1.0"?> 
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+    
+<application-client xmlns="http://java.sun.com/xml/ns/j2ee"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/applicationclient_1_4.xsd"
+    version="1.4">
+
+    <display-name>JAXR Client</display-name>
+
+</application-client>
+

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/application-client.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/application-client.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/application-client.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/geronimo-application-client.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/geronimo-application-client.xml?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/geronimo-application-client.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/geronimo-application-client.xml Wed Jan 17 10:34:12 2007
@@ -0,0 +1,40 @@
+<?xml version="1.0"?> 
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<application-client
+   xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-client-1.2"
+   xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
+
+   <dep:client-environment>
+    <dep:moduleId>
+      <dep:groupId>JEE5</dep:groupId>
+      <dep:artifactId>JAXRClient</dep:artifactId>
+      <dep:version>1.1</dep:version>
+      <dep:type>car</dep:type>
+    </dep:moduleId>
+   </dep:client-environment>
+
+   <dep:server-environment> 
+    <dep:moduleId>
+      <dep:groupId>JEE5</dep:groupId>
+      <dep:artifactId>JAXRClientServer</dep:artifactId>
+      <dep:version>1.1</dep:version>
+      <dep:type>car</dep:type>
+    </dep:moduleId>
+   </dep:server-environment>
+
+</application-client>

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/geronimo-application-client.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/geronimo-application-client.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/main/resources/META-INF/geronimo-application-client.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXRTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXRTest.java?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXRTest.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXRTest.java Wed Jan 17 10:34:12 2007
@@ -0,0 +1,61 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.geronimo.testsuite.testset;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.FileInputStream;
+
+import org.apache.geronimo.testsupport.TestSupport;
+import org.testng.annotations.Test;
+
+public class ClientJAXRTest extends TestSupport {
+
+    @Test
+    public void testClient() throws Exception {
+        String outputFile = System.getProperty("clientLogFile");
+        assertNotNull(outputFile);
+        FileInputStream in = null;
+        try {
+            in = new FileInputStream(outputFile);
+            BufferedReader reader = 
+                new BufferedReader(new InputStreamReader(in));
+            assertTrue("Factory", 
+                       find(reader, "org.apache.ws.scout.registry.ConnectionFactoryImpl"));
+        } finally {
+            if (in != null) {
+                in.close();
+            }
+        }
+    }
+
+    private boolean find(BufferedReader reader, String text) 
+        throws IOException {
+        String line = null;
+        while ((line = reader.readLine()) != null) {
+            System.out.println(line);
+            if (line.indexOf(text) != -1) {
+                return true;
+            }
+        }
+        return false;
+    }
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXRTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXRTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/jaxr-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientJAXRTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/pom.xml?view=diff&rev=497117&r1=497116&r2=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/pom.xml (original)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxr-tests/pom.xml Wed Jan 17 10:34:12 2007
@@ -55,6 +55,7 @@
             <modules>
                 <module>jaxr-war</module>
                 <module>jaxr-ejb</module>
+                <module>jaxr-client</module>
             </modules>
         </profile>
     </profiles>

Modified: geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/pom.xml?view=diff&rev=497117&r1=497116&r2=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/pom.xml (original)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/pom.xml Wed Jan 17 10:34:12 2007
@@ -55,6 +55,7 @@
             <modules>
                 <module>stax-war</module>
                 <module>stax-ejb</module>
+                <module>stax-client</module>
             </modules>
         </profile>
     </profiles>

Added: geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/pom.xml?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/pom.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/pom.xml Wed Jan 17 10:34:12 2007
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.testsuite</groupId>
+        <artifactId>stax-tests</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>stax-client</artifactId>
+    <name>Geronimo TestSuite :: WebServices TestSuite :: StAX Client</name>
+    <packaging>jar</packaging>
+
+    <description>This project executes testcases for your testsuite</description>
+
+    <properties>
+       <clientLogFile>${basedir}/target/client.log</clientLogFile>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>stax</groupId>
+            <artifactId>stax-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        <manifest>
+                            <mainClass>org.apache.geronimo.test.StaxClient</mainClass>
+                        </manifest>
+                    </archive>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <systemProperties>
+                        <property>
+                            <name>clientLogFile</name>
+                            <value>${clientLogFile}</value>
+                        </property>
+                    </systemProperties>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.geronimo.plugins</groupId>
+                <artifactId>testsuite-maven-plugin</artifactId>
+                <version>${version}</version>
+                <executions>
+                    <execution>
+                        <id>generate-surefire-xml</id>
+                        <phase>install</phase>
+                        <goals>
+                            <goal>generate-surefire-xml</goal>
+                        </goals>
+                        <!-- 
+                        Merging the configuration of this plugin with the one it inherits.
+                        Updating the reports in the grandparent directly as we'd have missed the boat for the parent's install phase.
+                        This plugin executes twice in Maven 2.0.4 (http://jira.codehaus.org/browse/MNG-2221)
+                        Maven.2.0.5 will fix it soon.
+                        -->
+                        <configuration>
+                            <grandParent>true</grandParent>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.geronimo.genesis.plugins</groupId>
+                <artifactId>tools-maven-plugin</artifactId>
+                <extensions>true</extensions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.geronimo.plugins</groupId>
+                <artifactId>geronimo-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>deploy-client</id>
+                        <phase>pre-integration-test</phase>
+                        <goals>
+                            <goal>deploy-module</goal>
+                        </goals>
+                        <configuration>
+                            <moduleArchive>${project.build.directory}/${artifactId}-${version}.jar</moduleArchive>
+                        </configuration>
+                    </execution>
+
+                    <execution>
+                        <phase>integration-test</phase>
+                        <id>run-client</id>
+                        <goals>
+                            <goal>run-client</goal>
+                        </goals>
+                        <configuration>
+                            <moduleId>JEE5/StaxClient/1.1/car</moduleId>
+                            <logOutput>true</logOutput>
+                            <logFile>${clientLogFile}</logFile>
+                        </configuration>
+                    </execution>
+
+                    <execution>
+                        <id>undeploy-client-as-moduleId</id>
+                        <phase>post-integration-test</phase>
+                        <goals>
+                            <goal>undeploy-module</goal>
+                        </goals>
+                        <configuration>
+                            <moduleId>JEE5/StaxClientServer/1.1/car</moduleId>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
+

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/StaxClient.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/StaxClient.java?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/StaxClient.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/StaxClient.java Wed Jan 17 10:34:12 2007
@@ -0,0 +1,53 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.geronimo.test;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLOutputFactory;
+import javax.xml.stream.XMLEventFactory;
+
+public class StaxClient {
+
+    public static void main(String [] args) throws Exception {
+        try {
+            test();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        
+        // needs to be forced because of a bug
+        System.exit(0);
+    }
+
+    public static void test() throws Exception {
+        XMLInputFactory inFactory = XMLInputFactory.newInstance();
+        System.out.println(inFactory.getClass().getName());
+        StaxTest.testParse(inFactory);
+        XMLOutputFactory outFactory = XMLOutputFactory.newInstance();
+        System.out.println(outFactory.getClass().getName());
+        StaxTest.testStreamGenerate(outFactory);
+        XMLEventFactory eventFactory = XMLEventFactory.newInstance();
+        System.out.println(eventFactory.getClass().getName());
+        StaxTest.testEventGenerate(outFactory, eventFactory);
+    }
+    
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/StaxClient.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/StaxClient.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/StaxClient.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/StaxTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/StaxTest.java?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/StaxTest.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/java/org/apache/geronimo/test/StaxTest.java Wed Jan 17 10:34:12 2007
@@ -0,0 +1,148 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.geronimo.test;
+
+import java.io.StringReader;
+import java.io.StringWriter;
+
+import javax.xml.stream.XMLEventWriter;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLOutputFactory;
+import javax.xml.stream.XMLEventFactory;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
+import javax.xml.stream.XMLStreamConstants;
+
+/**
+ * Performs basic tests using the Stax API. 
+ * Some tests might be too delicate if tested with other parsers.
+ */
+public class StaxTest {
+
+    private static String XML = "<foo attr1=\"value1\"><bar>myData</bar></foo>";
+    
+    public static void testParse(XMLInputFactory inFactory) throws Exception {
+        StringReader reader = new StringReader(XML);
+        
+        XMLStreamReader stream = inFactory.createXMLStreamReader(reader);
+        int depth = 0;
+        while(stream.hasNext()) {
+            int event = stream.next();
+            System.out.println(event);
+            switch (event) {
+            case XMLStreamConstants.START_ELEMENT:
+                if (depth == 0) {
+                    if (!stream.getLocalName().equals("foo")) {
+                        throw new Exception("unexpected element: " + stream.getLocalName());
+                    }
+                    if (1 != stream.getAttributeCount()) {
+                        throw new Exception("unexpected number of attributes: " + 
+                                           stream.getAttributeCount());
+                    }
+                    if (!("value1".equals(stream.getAttributeValue(0)))) {
+                        throw new Exception("unexpected attribute value: " +
+                                            stream.getAttributeValue(0));
+                    }
+                } else if (depth == 1) {
+                    if (!stream.getLocalName().equals("bar")) {
+                        throw new Exception("unexpected element: " + stream.getLocalName());
+                    }
+                    if (0 != stream.getAttributeCount()) {
+                        throw new Exception("unexpected number of attributes: " + 
+                                           stream.getAttributeCount());
+                    }
+                } else {
+                    throw new Exception("unexpected element: " + stream.getLocalName());
+                }
+                depth++;
+                break;
+            case XMLStreamConstants.END_ELEMENT:
+                if (depth == 1) {
+                    if (!stream.getLocalName().equals("foo")) {
+                        throw new Exception("unexpected element: " + stream.getLocalName());
+                    }
+                } else if (depth == 2) {
+                    if (!stream.getLocalName().equals("bar")) {
+                        throw new Exception("unexpected element: " + stream.getLocalName());
+                    }
+                } else {
+                    throw new Exception("unexpected element: " + stream.getLocalName());
+                }
+                depth--;
+                break;
+            case XMLStreamConstants.CHARACTERS:
+                if (!(depth == 2 && "myData".equals(stream.getText()))) {
+                    throw new Exception("unexpected character data: " + stream.getText());
+                }
+                break;
+            }            
+          }
+    }
+    
+    public static void testStreamGenerate(XMLOutputFactory outFactory) throws Exception {
+        
+        StringWriter strWriter = new StringWriter();
+        
+        XMLStreamWriter writer = outFactory.createXMLStreamWriter(strWriter);
+        writer.writeStartElement("foo");
+        writer.writeAttribute("attr1", "value1");
+        writer.writeStartElement("bar");
+        writer.writeCharacters("myData");
+        writer.writeEndElement();
+        writer.writeEndElement();
+        
+        writer.flush();
+        writer.close();
+        
+        String actual = strWriter.toString();
+        
+        System.out.println(actual);
+        
+        if (!XML.equals(actual)) {
+            throw new Exception("Expected: " + XML + " Actual: " + actual);
+        }
+    }
+
+    public static void testEventGenerate(XMLOutputFactory outFactory,
+                                         XMLEventFactory eventFactory) throws Exception {
+        
+        StringWriter strWriter = new StringWriter();
+        
+        XMLEventWriter writer = outFactory.createXMLEventWriter(strWriter);
+        
+        
+        writer.add(eventFactory.createStartElement("", null, "foo"));
+        writer.add(eventFactory.createAttribute("attr1", "value1"));
+        writer.add(eventFactory.createStartElement("", null, "bar"));
+        writer.add(eventFactory.createCharacters("myData"));
+        writer.add(eventFactory.createEndElement("", null, "bar"));
+        writer.add(eventFactory.createEndElement("", null, "foo"));
+        
+        writer.flush();
+        writer.close();
+        
+        String actual = strWriter.toString();
+        
+        System.out.println(actual);
+        
+        if (!XML.equals(actual)) {
+            throw new Exception("Expected: " + XML + " Actual: " + actual);
+        }
+    }
+}