[jboss-cvs] JBossAS SVN: r110749 - projects/jboss-jca/trunk/rhq/src/test/java/org/jboss/jca/rhq/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Feb 23 05:06:27 EST 2011
Author: jeff.zhang
Date: 2011-02-23 05:06:27 -0500 (Wed, 23 Feb 2011)
New Revision: 110749
Added:
projects/jboss-jca/trunk/rhq/src/test/java/org/jboss/jca/rhq/test/EmbeddedJCAContainerTestCase.java
Removed:
projects/jboss-jca/trunk/rhq/src/test/java/org/jboss/jca/rhq/test/EmbeddedJCAContainerTest.java
Log:
[JBJCA-500] change test case java name to make it run
Deleted: projects/jboss-jca/trunk/rhq/src/test/java/org/jboss/jca/rhq/test/EmbeddedJCAContainerTest.java
===================================================================
--- projects/jboss-jca/trunk/rhq/src/test/java/org/jboss/jca/rhq/test/EmbeddedJCAContainerTest.java 2011-02-23 01:42:05 UTC (rev 110748)
+++ projects/jboss-jca/trunk/rhq/src/test/java/org/jboss/jca/rhq/test/EmbeddedJCAContainerTest.java 2011-02-23 10:06:27 UTC (rev 110749)
@@ -1,82 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2011, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file 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.jca.rhq.test;
-
-import org.jboss.jca.core.api.management.ManagementRepository;
-import org.jboss.jca.embedded.Embedded;
-import org.jboss.jca.embedded.EmbeddedFactory;
-
-import org.junit.AfterClass;
-import org.junit.Assert;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-/**
- * EmbeddedJCAContainerTest
- *
- * @author Jeff Zhang
- *
- */
-public class EmbeddedJCAContainerTest
-{
- /** Embedded */
- private static Embedded embedded;
-
- /**
- * Basic testGetManagementRepository
- *
- * @exception Throwable Thrown if case of an error
- */
- @Test
- public void testGetManagementRepository() throws Throwable
- {
- ManagementRepository manRepo = embedded.lookup("ManagementRepository", ManagementRepository.class);
- Assert.assertNotNull(manRepo);
- }
-
- /**
- * Lifecycle start, before the suite is executed
- * @throws Throwable throwable exception
- */
- @BeforeClass
- public static void beforeClass() throws Throwable
- {
- // Create and set an embedded JCA instance
- embedded = EmbeddedFactory.create();
- // Startup
- embedded.startup();
-
- }
-
- /**
- * Lifecycle stop, after the suite is executed
- * @throws Throwable throwable exception
- */
- @AfterClass
- public static void afterClass() throws Throwable
- {
- // Shutdown embedded
- embedded.shutdown();
- // Set embedded to null
- embedded = null;
- }
-}
Copied: projects/jboss-jca/trunk/rhq/src/test/java/org/jboss/jca/rhq/test/EmbeddedJCAContainerTestCase.java (from rev 110748, projects/jboss-jca/trunk/rhq/src/test/java/org/jboss/jca/rhq/test/EmbeddedJCAContainerTest.java)
===================================================================
--- projects/jboss-jca/trunk/rhq/src/test/java/org/jboss/jca/rhq/test/EmbeddedJCAContainerTestCase.java (rev 0)
+++ projects/jboss-jca/trunk/rhq/src/test/java/org/jboss/jca/rhq/test/EmbeddedJCAContainerTestCase.java 2011-02-23 10:06:27 UTC (rev 110749)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jca.rhq.test;
+
+import org.jboss.jca.core.api.management.ManagementRepository;
+import org.jboss.jca.embedded.Embedded;
+import org.jboss.jca.embedded.EmbeddedFactory;
+
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * EmbeddedJCAContainerTestCase
+ *
+ * @author Jeff Zhang
+ *
+ */
+public class EmbeddedJCAContainerTestCase
+{
+ /** Embedded */
+ private static Embedded embedded;
+
+ /**
+ * Basic testGetManagementRepository
+ *
+ * @exception Throwable Thrown if case of an error
+ */
+ @Test
+ public void testGetManagementRepository() throws Throwable
+ {
+ ManagementRepository manRepo = embedded.lookup("ManagementRepository", ManagementRepository.class);
+ Assert.assertNotNull(manRepo);
+ }
+
+ /**
+ * Lifecycle start, before the suite is executed
+ * @throws Throwable throwable exception
+ */
+ @BeforeClass
+ public static void beforeClass() throws Throwable
+ {
+ // Create and set an embedded JCA instance
+ embedded = EmbeddedFactory.create();
+ // Startup
+ embedded.startup();
+
+ }
+
+ /**
+ * Lifecycle stop, after the suite is executed
+ * @throws Throwable throwable exception
+ */
+ @AfterClass
+ public static void afterClass() throws Throwable
+ {
+ // Shutdown embedded
+ embedded.shutdown();
+ // Set embedded to null
+ embedded = null;
+ }
+}
More information about the jboss-cvs-commits
mailing list