You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scout-dev@ws.apache.org by ks...@apache.org on 2007/07/11 04:59:02 UTC

svn commit: r555147 - /webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/JAXR00ConnectionTest.java

Author: kstam
Date: Tue Jul 10 19:59:01 2007
New Revision: 555147

URL: http://svn.apache.org/viewvc?view=rev&rev=555147
Log:
scout-39 Adding simple connection test

Added:
    webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/JAXR00ConnectionTest.java   (with props)

Added: webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/JAXR00ConnectionTest.java
URL: http://svn.apache.org/viewvc/webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/JAXR00ConnectionTest.java?view=auto&rev=555147
==============================================================================
--- webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/JAXR00ConnectionTest.java (added)
+++ webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/JAXR00ConnectionTest.java Tue Jul 10 19:59:01 2007
@@ -0,0 +1,62 @@
+/**
+ *
+ * Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed 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.ws.scout;
+
+import java.net.PasswordAuthentication;
+import java.util.HashSet;
+import java.util.Set;
+
+import javax.xml.registry.JAXRException;
+
+/**
+ * Test to check Jaxr Publish
+ * Open source UDDI Browser  <http://www.uddibrowser.org>
+ * can be used to check your results
+ * @author <ma...@apache.org>Anil Saldhana
+ * @since Nov 20, 2004
+ */
+public class JAXR00ConnectionTest extends BaseTestCase
+{
+    public void setUp()
+    {
+        super.setUp();
+    }
+
+    public void tearDown()
+    {
+      super.tearDown();
+    }
+
+    public void testConnection()
+    {
+        PasswordAuthentication passwdAuth = new PasswordAuthentication(userid,
+                passwd.toCharArray());
+        Set<PasswordAuthentication> creds = new HashSet<PasswordAuthentication>();
+        creds.add(passwdAuth);
+
+        try
+        {
+            connection.setCredentials(creds);
+            assertNotNull(connection);
+            
+        } catch (JAXRException e) {
+            fail(e.getMessage());
+            e.printStackTrace();
+        }
+        
+    }
+}

Propchange: webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/JAXR00ConnectionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



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