[Jboss-cvs] JBossAS SVN: r55366 - in branches/MC_VDF_WORK/system-jmx/src: resources/tests/org/jboss/test/system/controller/integration/test tests/org/jboss/test/system/controller/integration/support tests/org/jboss/test/system/controller/integration/test

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Aug 7 10:44:41 EDT 2006


Author: adrian at jboss.org
Date: 2006-08-07 10:44:33 -0400 (Mon, 07 Aug 2006)
New Revision: 55366

Added:
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase-mc.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase-mc.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase-mc.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase-mc.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase.xml
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/InjectMCFromJMXTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/IntegrationTestSuite.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase.java
Modified:
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/SimpleBean.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/ConfigureMCFromJMXUnitTestCase.java
Log:
[JBAS-1841] - Tests for injection of JMX into all the POJO lifecycle.

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase-mc.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase-mc.xml	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase-mc.xml	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="Test" class="org.jboss.test.system.controller.integration.support.SimpleBean">
+      <create method="create">
+         <parameter class="org.jboss.test.system.controller.support.Simple">
+            <inject bean="jboss.test:type=test"/>
+         </parameter>
+      </create>
+   </bean>
+</deployment>

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase.xml	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase.xml	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase-mc.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase-mc.xml	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase-mc.xml	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="Test" class="org.jboss.test.system.controller.integration.support.SimpleBean">
+      <install method="install">
+         <parameter class="org.jboss.test.system.controller.support.Simple">
+            <inject bean="jboss.test:type=test"/>
+         </parameter>
+      </install>
+   </bean>
+</deployment>

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase.xml	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase.xml	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase-mc.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase-mc.xml	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase-mc.xml	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="Test" class="org.jboss.test.system.controller.integration.support.SimpleBean">
+      <constructor>
+         <parameter class="org.jboss.test.system.controller.support.Simple">
+            <inject bean="jboss.test:type=test"/>
+         </parameter>
+      </constructor>
+   </bean>
+</deployment>

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase.xml	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase.xml	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase-mc.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase-mc.xml	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase-mc.xml	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="Test" class="org.jboss.test.system.controller.integration.support.SimpleBean">
+      <start method="start">
+         <parameter class="org.jboss.test.system.controller.support.Simple">
+            <inject bean="jboss.test:type=test"/>
+         </parameter>
+      </start>
+   </bean>
+</deployment>

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase.xml	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase.xml	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/SimpleBean.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/SimpleBean.java	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/SimpleBean.java	2006-08-07 14:44:33 UTC (rev 55366)
@@ -35,6 +35,23 @@
    private Simple simple;
 
    /**
+    * Create a new SimpleBean.
+    */
+   public SimpleBean()
+   {
+   }
+   
+   /**
+    * Create a new SimpleBean.
+    * 
+    * @param simple the simple object
+    */
+   public SimpleBean(Simple simple)
+   {
+      this.simple = simple;
+   }
+
+   /**
     * Get the simple.
     * 
     * @return the simple.
@@ -53,4 +70,19 @@
    {
       this.simple = simple;
    }
+   
+   public void create(Simple simple)
+   {
+      this.simple = simple;
+   }
+   
+   public void start(Simple simple)
+   {
+      this.simple = simple;
+   }
+   
+   public void install(Simple simple)
+   {
+      this.simple = simple;
+   }
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/ConfigureMCFromJMXUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/ConfigureMCFromJMXUnitTestCase.java	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/ConfigureMCFromJMXUnitTestCase.java	2006-08-07 14:44:33 UTC (rev 55366)
@@ -21,9 +21,6 @@
 */
 package org.jboss.test.system.controller.integration.test;
 
-import org.jboss.dependency.spi.ControllerContext;
-import org.jboss.test.system.controller.integration.support.SimpleBean;
-
 import junit.framework.Test;
 
 /**
@@ -32,7 +29,7 @@
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $
  */
-public class ConfigureMCFromJMXUnitTestCase extends AbstractIntegrationTest
+public class ConfigureMCFromJMXUnitTestCase extends InjectMCFromJMXTest
 {
    public static Test suite()
    {
@@ -46,21 +43,6 @@
    
    public void testConfigureMCFromJMX() throws Throwable
    {
-      ControllerContext mbeanContext = getControllerContext("jboss.test:type=test");
-      assertNotNull(mbeanContext);
-      Object mbean = mbeanContext.getTarget();
-      assertNotNull(mbean);
-
-      ControllerContext beanContext = getControllerContext("Test");
-      assertNotNull(beanContext);
-      Object bean = beanContext.getTarget();
-      assertNotNull(bean);
-      assertTrue(bean instanceof SimpleBean);
-      
-      SimpleBean simpleBean = (SimpleBean) bean;
-      
-      Object injected = simpleBean.getSimple();
-      
-      assertTrue("MBean was not injected: ", mbean == injected);
+      checkInject();
    }
 }

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase.java	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase.java	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,48 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, 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.system.controller.integration.test;
+
+import junit.framework.Test;
+
+/**
+ * CreateMCFromJMXUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class CreateMCFromJMXUnitTestCase extends InjectMCFromJMXTest
+{
+   public static Test suite()
+   {
+      return suite(CreateMCFromJMXUnitTestCase.class);
+   }
+
+   public CreateMCFromJMXUnitTestCase(String name)
+   {
+      super(name);
+   }
+   
+   public void testCreateMCFromJMX() throws Throwable
+   {
+      checkInject();
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/InjectMCFromJMXTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/InjectMCFromJMXTest.java	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/InjectMCFromJMXTest.java	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,66 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, 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.system.controller.integration.test;
+
+import org.jboss.dependency.spi.ControllerContext;
+import org.jboss.test.system.controller.integration.support.SimpleBean;
+
+import junit.framework.Test;
+
+/**
+ * InjectMCFromJMXTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class InjectMCFromJMXTest extends AbstractIntegrationTest
+{
+   public static Test suite()
+   {
+      return suite(InjectMCFromJMXTest.class);
+   }
+
+   public InjectMCFromJMXTest(String name)
+   {
+      super(name);
+   }
+   
+   public void checkInject() throws Throwable
+   {
+      ControllerContext mbeanContext = getControllerContext("jboss.test:type=test");
+      assertNotNull(mbeanContext);
+      Object mbean = mbeanContext.getTarget();
+      assertNotNull(mbean);
+
+      ControllerContext beanContext = getControllerContext("Test");
+      assertNotNull(beanContext);
+      Object bean = beanContext.getTarget();
+      assertNotNull(bean);
+      assertTrue(bean instanceof SimpleBean);
+      
+      SimpleBean simpleBean = (SimpleBean) bean;
+      
+      Object injected = simpleBean.getSimple();
+      
+      assertTrue("MBean was not injected: ", mbean == injected);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase.java	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase.java	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,48 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, 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.system.controller.integration.test;
+
+import junit.framework.Test;
+
+/**
+ * InstallMCFromJMXUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class InstallMCFromJMXUnitTestCase extends InjectMCFromJMXTest
+{
+   public static Test suite()
+   {
+      return suite(InstallMCFromJMXUnitTestCase.class);
+   }
+
+   public InstallMCFromJMXUnitTestCase(String name)
+   {
+      super(name);
+   }
+   
+   public void testInstallMCFromJMX() throws Throwable
+   {
+      checkInject();
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase.java	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase.java	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,48 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, 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.system.controller.integration.test;
+
+import junit.framework.Test;
+
+/**
+ * InstantiateMCFromJMXUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class InstantiateMCFromJMXUnitTestCase extends InjectMCFromJMXTest
+{
+   public static Test suite()
+   {
+      return suite(InstantiateMCFromJMXUnitTestCase.class);
+   }
+
+   public InstantiateMCFromJMXUnitTestCase(String name)
+   {
+      super(name);
+   }
+   
+   public void testInstantiateMCFromJMX() throws Throwable
+   {
+      checkInject();
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/IntegrationTestSuite.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/IntegrationTestSuite.java	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/IntegrationTestSuite.java	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,53 @@
+/*
+* 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.system.controller.integration.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * IntegrationTestSuite.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class IntegrationTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("Integration Tests");
+
+      suite.addTest(InstantiateMCFromJMXUnitTestCase.suite());
+      suite.addTest(ConfigureMCFromJMXUnitTestCase.suite());
+      suite.addTest(CreateMCFromJMXUnitTestCase.suite());
+      suite.addTest(StartMCFromJMXUnitTestCase.suite());
+      suite.addTest(InstallMCFromJMXUnitTestCase.suite());
+      
+      return suite;
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase.java	2006-08-07 13:37:27 UTC (rev 55365)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase.java	2006-08-07 14:44:33 UTC (rev 55366)
@@ -0,0 +1,48 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, 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.system.controller.integration.test;
+
+import junit.framework.Test;
+
+/**
+ * StartMCFromJMXUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class StartMCFromJMXUnitTestCase extends InjectMCFromJMXTest
+{
+   public static Test suite()
+   {
+      return suite(StartMCFromJMXUnitTestCase.class);
+   }
+
+   public StartMCFromJMXUnitTestCase(String name)
+   {
+      super(name);
+   }
+   
+   public void testStartMCFromJMX() throws Throwable
+   {
+      checkInject();
+   }
+}




More information about the jboss-cvs-commits mailing list