You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ga...@apache.org on 2007/07/25 18:22:29 UTC

svn commit: r559512 - /webservices/axis2/trunk/java/modules/metadata/test/org/apache/axis2/jaxws/description/impl/DescriptionFactoryImplTests.java

Author: gawor
Date: Wed Jul 25 09:22:24 2007
New Revision: 559512

URL: http://svn.apache.org/viewvc?view=rev&rev=559512
Log:
a disabled test case that demonstrates the problem as described in AXIS-3011

Added:
    webservices/axis2/trunk/java/modules/metadata/test/org/apache/axis2/jaxws/description/impl/DescriptionFactoryImplTests.java   (with props)

Added: webservices/axis2/trunk/java/modules/metadata/test/org/apache/axis2/jaxws/description/impl/DescriptionFactoryImplTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/test/org/apache/axis2/jaxws/description/impl/DescriptionFactoryImplTests.java?view=auto&rev=559512
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/test/org/apache/axis2/jaxws/description/impl/DescriptionFactoryImplTests.java (added)
+++ webservices/axis2/trunk/java/modules/metadata/test/org/apache/axis2/jaxws/description/impl/DescriptionFactoryImplTests.java Wed Jul 25 09:22:24 2007
@@ -0,0 +1,60 @@
+/*
+ * 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.axis2.jaxws.description.impl;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+
+import junit.framework.TestCase;
+
+import org.apache.axis2.jaxws.description.ServiceDescription;
+
+public class DescriptionFactoryImplTests extends TestCase {
+    
+    private static final String namespaceURI =
+            "http://org.apache.axis2.jaxws.description.ServiceDescriptionTests";
+    private static final String localPart = "EchoService";
+    private static final QName serviceQName = new QName(namespaceURI, localPart);
+
+    public void testServiceDescriptionCaching() {        
+        QName uniqueQName = new QName(namespaceURI, localPart + "_testValidServiceSubclass");
+        
+        ServiceDescription desc1 = 
+            DescriptionFactoryImpl.createServiceDescription(null, uniqueQName, ServiceSubclass.class);
+                    
+        /*
+        int size = 5;
+        ServiceDescription desc2; 
+        for (int i = 0; i < size; i++) {
+            desc2 = 
+                DescriptionFactoryImpl.createServiceDescription(null, uniqueQName, ServiceSubclass.class);
+            assertTrue("service description was not reused", desc1 == desc2);
+        } 
+        */     
+    }   
+
+    private static class ServiceSubclass extends javax.xml.ws.Service {
+
+        protected ServiceSubclass(URL wsdlDocumentLocation, QName serviceName) {
+            super(wsdlDocumentLocation, serviceName);
+        }
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/metadata/test/org/apache/axis2/jaxws/description/impl/DescriptionFactoryImplTests.java
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org