[jboss-cvs] JBossAS SVN: r67672 - trunk/testsuite/src/main/org/jboss/test/jmx/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Nov 30 17:25:07 EST 2007
Author: anil.saldhana at jboss.com
Date: 2007-11-30 17:25:06 -0500 (Fri, 30 Nov 2007)
New Revision: 67672
Added:
trunk/testsuite/src/main/org/jboss/test/jmx/test/MBeanServiceRegistrationUnitTestCase.java
Log:
add basic mbeanservice deploy undeploy deploy sequence test case
Added: trunk/testsuite/src/main/org/jboss/test/jmx/test/MBeanServiceRegistrationUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jmx/test/MBeanServiceRegistrationUnitTestCase.java (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/jmx/test/MBeanServiceRegistrationUnitTestCase.java 2007-11-30 22:25:06 UTC (rev 67672)
@@ -0,0 +1,78 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.jmx.test;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.test.JBossTestCase;
+import org.jboss.test.JBossTestSetup;
+
+//$Id$
+
+/**
+ * Deploy/undeploy a mbean service
+ * few times to validate mbean service registration/deregistation
+ * @author Anil.Saldhana at redhat.com
+ * @since Nov 30, 2007
+ * @version $Revision$
+ */
+public class MBeanServiceRegistrationUnitTestCase extends JBossTestCase
+{
+ public MBeanServiceRegistrationUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ public void testMBeanRegistration()
+ {
+ }
+
+ /**
+ * Setup the test suite.
+ */
+ public static Test suite() throws Exception
+ {
+ TestSuite suite = new TestSuite();
+ suite.addTest(new TestSuite(MBeanServiceRegistrationUnitTestCase.class));
+
+ // Create an initializer for the test suite
+ TestSetup wrapper = new JBossTestSetup(suite)
+ {
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ undeploy(getResourceURL("security-spi/deploymentlevel/deploymentlevel-test-service.xml"));
+ deploy(getResourceURL("security-spi/deploymentlevel/deploymentlevel-test-service.xml"));
+ undeploy(getResourceURL("security-spi/deploymentlevel/deploymentlevel-test-service.xml"));
+ deploy(getResourceURL("security-spi/deploymentlevel/deploymentlevel-test-service.xml"));
+ }
+ protected void tearDown() throws Exception
+ {
+ undeploy(getResourceURL("security-spi/deploymentlevel/deploymentlevel-test-service.xml"));
+ super.tearDown();
+ }
+ };
+ return wrapper;
+ }
+}
More information about the jboss-cvs-commits
mailing list