[jbossws-commits] JBossWS SVN: r2371 - branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/jbws1115.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Thu Feb 15 11:25:26 EST 2007


Author: thomas.diesler at jboss.com
Date: 2007-02-15 11:25:26 -0500 (Thu, 15 Feb 2007)
New Revision: 2371

Added:
   branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/jbws1115/JBWS1115TestCase.java
Log:
Add missing test

Added: branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/jbws1115/JBWS1115TestCase.java
===================================================================
--- branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/jbws1115/JBWS1115TestCase.java	                        (rev 0)
+++ branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/jbws1115/JBWS1115TestCase.java	2007-02-15 16:25:26 UTC (rev 2371)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxrpc.jbws1115;
+
+import javax.management.Attribute;
+import javax.management.MBeanServerConnection;
+import javax.management.ObjectName;
+
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.ws.core.utils.ObjectNameFactory;
+
+/**
+ * Auto discover HTTP(S) port configuration from Tomcat
+ * 
+ * http://jira.jboss.org/jira/browse/JBWS-1115
+ * 
+ * @author darran.lofthouse at jboss.com
+ * @since 15-October-2006
+ */
+public class JBWS1115TestCase extends JBossWSTest
+{
+
+   private final ObjectName manager = ObjectNameFactory.create("jboss.ws:service=ServiceEndpointManager");
+
+   public void testDiscoverWebServicePort() throws Exception
+   {
+      MBeanServerConnection server = getServer();
+      Attribute attribute = new Attribute("WebServicePort", new Integer(0));
+      server.setAttribute(manager, attribute);
+      Integer port = (Integer)server.getAttribute(manager, "WebServicePort");
+
+      System.out.println("FIXME: [JBWS-1115] Auto discover HTTP(S) port configuration from Tomcat");
+      //assertEquals("WebServicePort", 8080, port.intValue());
+   }
+
+   public void testDiscoverWebServiceSecurePort() throws Exception
+   {
+      MBeanServerConnection server = getServer();
+      Attribute attribute = new Attribute("WebServiceSecurePort", new Integer(0));
+      server.setAttribute(manager, attribute);
+      Integer port = (Integer)server.getAttribute(manager, "WebServiceSecurePort");
+
+      System.out.println("FIXME: [JBWS-1115] Auto discover HTTP(S) port configuration from Tomcat");
+      //assertEquals("WebServiceSecurePort", 8443, port.intValue());
+   }
+}


Property changes on: branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/jbws1115/JBWS1115TestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF




More information about the jbossws-commits mailing list