[jboss-cvs] JBossAS SVN: r84708 - in projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10: section1 and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Feb 25 04:23:06 EST 2009
Author: jeff.zhang
Date: 2009-02-25 04:23:06 -0500 (Wed, 25 Feb 2009)
New Revision: 84708
Added:
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/WorkManagementModelTestCase.java
Modified:
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section1/ManageThreadTestCase.java
Log:
[JBJCA-33] add some tests plan
Modified: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section1/ManageThreadTestCase.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section1/ManageThreadTestCase.java 2009-02-25 09:20:15 UTC (rev 84707)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section1/ManageThreadTestCase.java 2009-02-25 09:23:06 UTC (rev 84708)
@@ -27,6 +27,7 @@
import org.junit.AfterClass;
import static org.junit.Assert.* ;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
/**
@@ -55,7 +56,35 @@
ThreadPool threadPool = workManager.getThreadPool();
assertNotNull(threadPool);
}
+
+ /**
+ * Test for paragraph 4 : bullet 1
+ */
+ @Ignore
+ public void testRaSharingThreadPool() throws Throwable
+ {
+ //TODO reuse them efficiently across different resource adapters deployed in its runtime environment
+ }
+ /**
+ * Test for paragraph 4 : bullet 4
+ */
+ @Ignore
+ public void testCheckWorkByIntercept() throws Throwable
+ {
+ //TODO may need to enforce control over the runtime behavior of its system components
+ //an application server may choose to intercept operations on a thread object, perform checks, and enforce correct behavior.
+ }
+
+ /**
+ * Test for paragraph 4 : bullet 5
+ */
+ @Ignore
+ public void testAsDisallowRaCreateThread() throws Throwable
+ {
+ //TODO An application server may disallow resource adapters from creating their own threads based on its security policy setting, enforced by a security manager.
+ }
+
// --------------------------------------------------------------------------------||
// Lifecycle Methods --------------------------------------------------------------||
// --------------------------------------------------------------------------------||
Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/WorkManagementModelTestCase.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/WorkManagementModelTestCase.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/WorkManagementModelTestCase.java 2009-02-25 09:23:06 UTC (rev 84708)
@@ -0,0 +1,107 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.test.core.spec.chapter10.section3;
+
+import org.junit.AfterClass;
+import static org.junit.Assert.* ;
+import org.junit.BeforeClass;
+import org.junit.Ignore;
+import org.junit.Test;
+
+/**
+ * WorkManagementModelTestCase.
+ *
+ * Tests for the JCA specific Chapter 10 Section 3
+ *
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
+ * @version $Revision: $
+ */
+public class WorkManagementModelTestCase
+{
+
+
+ /**
+ * Test for paragraph 1
+ */
+ @Test
+ public void testGetWorkManagerFromBootstrapConext() throws Throwable
+ {
+
+ }
+
+ /**
+ * Test for paragraph 2
+ */
+ @Ignore
+ public void testOneThreadPickWorkInstance() throws Throwable
+ {
+ }
+
+ /**
+ * Test for paragraph at Test 2
+ */
+ @Ignore
+ public void testManyWorkInstancesSubmitted() throws Throwable
+ {
+ }
+
+ /**
+ * Test for paragraph 2
+ */
+ @Ignore
+ public void testAnytimeWorkInstanceSubmitted() throws Throwable
+ {
+ }
+
+ /**
+ * Test for paragraph 2
+ */
+ @Ignore
+ public void testThreadBackPoolWhenWorkDone() throws Throwable
+ {
+ }
+
+ /**
+ * Test for paragraph 3
+ */
+ @Ignore
+ public void testAsActiveThreadOnLoadCondition() throws Throwable
+ {
+ }
+
+ /**
+ * Test for paragraph 3
+ */
+ @Ignore
+ public void testRaPeriodicalReleaseWorkResource() throws Throwable
+ {
+ }
+
+ /**
+ * Test for paragraph 4
+ */
+ @Ignore
+ public void testAsUseThreadSamePriorityLevel() throws Throwable
+ {
+ }
+
+}
More information about the jboss-cvs-commits
mailing list