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 [2/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...

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

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

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

Added: geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/resources/META-INF/application-client.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/resources/META-INF/application-client.xml?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/resources/META-INF/application-client.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-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>StAX Client</display-name>
+
+</application-client>
+

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

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

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

Added: geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/resources/META-INF/geronimo-application-client.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/resources/META-INF/geronimo-application-client.xml?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/main/resources/META-INF/geronimo-application-client.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-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>StaxClient</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>StaxClientServer</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/stax-tests/stax-client/src/main/resources/META-INF/geronimo-application-client.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientStaxTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientStaxTest.java?view=auto&rev=497117
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientStaxTest.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/stax-tests/stax-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientStaxTest.java Wed Jan 17 10:34:12 2007
@@ -0,0 +1,65 @@
+/**
+ *  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 ClientStaxTest 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("InputFactory", 
+                       find(reader, "com.ctc.wstx.stax.WstxInputFactory"));
+            assertTrue("OutputFactory", 
+                       find(reader, "com.ctc.wstx.stax.WstxOutputFactory"));
+            assertTrue("EventFactory", 
+                       find(reader, "com.ctc.wstx.stax.WstxEventFactory"));
+        } 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/stax-tests/stax-client/src/test/java/org/apache/geronimo/testsuite/testset/ClientStaxTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

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

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