[jboss-cvs] JBossAS SVN: r88775 - branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed May 13 00:52:10 EDT 2009


Author: scott.stark at jboss.org
Date: 2009-05-13 00:52:10 -0400 (Wed, 13 May 2009)
New Revision: 88775

Modified:
   branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/test/ServerManagedObjectsTestCase.java
Log:
JBAS-6895, remove obsolete tests

Modified: branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/test/ServerManagedObjectsTestCase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/test/ServerManagedObjectsTestCase.java	2009-05-13 03:44:13 UTC (rev 88774)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/test/ServerManagedObjectsTestCase.java	2009-05-13 04:52:10 UTC (rev 88775)
@@ -256,85 +256,6 @@
       getLog().info(props);
    }
 
-   public void testWebConnector()
-      throws Exception
-   {
-      // Make a request
-      InetAddress address = InetAddress.getByName(getServerHost());
-      URL root = new URL("http://"+address.getHostAddress()+":8080/");
-      // Load the 
-      ManagementView mgtView = getManagementView();
-      ComponentType type = new ComponentType("MBean", "Web");
-      String name = "jboss.web:name=http-"+address.getHostAddress()+"-8080,type=GlobalRequestProcessor";
-      ManagedComponent mc = mgtView.getComponent(name, type);
-      assertNotNull(name, mc);
-      Map<String, ManagedProperty> props = mc.getProperties();
-      for(ManagedProperty mp : props.values())
-         log.info(mp.getName()+", "+mp.getValue());
-      root.openConnection().setUseCaches(false);
-      log.info(root+" content: "+root.openConnection().getContentLength());
-      
-      // {errorCount, bytesReceived, bytesSent, state, requestProcessors, processingTime, requestCount, maxTime}
-      ManagedProperty bytesSent = mc.getProperty("bytesSent");
-      assertNotNull(bytesSent);
-      MetaValue bytesSentMV = bytesSent.getValue();
-      SimpleValue bytesSentSV = (SimpleValue) bytesSentMV;
-      log.debug("bytesSentSV#1: "+bytesSentSV);
-      assertTrue("bytesSent > 0", bytesSentSV.compareTo(SimpleValueSupport.wrap(0)) > 0);
-      
-      // Make the request again to ensure the count increases
-      log.info(root+" content: "+root.openConnection().getContentLength());
-      MetaValue bytesSentMV2 = bytesSent.getValue();
-      SimpleValue bytesSentSV2 = (SimpleValue) bytesSentMV2;
-      log.debug("bytesSentSV#2: "+bytesSentSV2);
-      assertTrue("bytesSentSV2 > bytesSentSV", bytesSentSV2.compareTo(bytesSentSV) > 0);
-   }
-
-   public void testWebConnectorPool()
-      throws Exception
-   {
-      // Make a request
-      InetAddress address = InetAddress.getByName(getServerHost());
-      URL root = new URL("http://"+address.getHostAddress()+":8080/");
-      // Load the 
-      ManagementView mgtView = getManagementView();
-      ComponentType type = new ComponentType("MBean", "Web");
-      String name = "jboss.web:name=http-"+address.getHostAddress()+"-8080,type=ThreadPool";
-      ManagedComponent mc = mgtView.getComponent(name, type);
-      assertNotNull(name, mc);
-      Map<String, ManagedProperty> props = mc.getProperties();
-      for(ManagedProperty mp : props.values())
-         log.info(mp.getName()+", "+mp.getValue());
-      log.info(root+" content: "+root.openConnection().getContentLength());
-      
-      ManagedProperty threadPriority = mc.getProperty("threadPriority");
-      assertNotNull(threadPriority);
-      MetaValue threadPriorityMV = threadPriority.getValue();
-      SimpleValue threadPrioritySV = (SimpleValue) threadPriorityMV;
-      assertTrue("threadPriority > 0", threadPrioritySV.compareTo(SimpleValueSupport.wrap(0)) > 0);
-      assertEquals(mc.getRunState(), RunState.RUNNING);
-   }
-
-   public void testWebHost()
-      throws Exception
-   {
-      // Make a request
-      InetAddress address = InetAddress.getByName(getServerHost());
-      // Load the 
-      ManagementView mgtView = getManagementView();
-      ComponentType type = new ComponentType("MBean", "Web:Host");
-      String name = "jboss.web:host=localhost,type=Host";
-      ManagedComponent mc = mgtView.getComponent(name, type);
-      assertNotNull(name, mc);
-      Map<String, ManagedProperty> props = mc.getProperties();
-      for(ManagedProperty mp : props.values())
-         log.info(mp.getName()+", "+mp.getValue());
-      
-      ManagedProperty aliases = mc.getProperty("aliases");
-      assertNotNull(aliases);
-      assertEquals(RunState.RUNNING, mc.getRunState());
-   }
-   
    public void testMBeanFactory() throws Exception
    {
       ManagementView mgtView = getManagementView();




More information about the jboss-cvs-commits mailing list