[jboss-cvs] JBossAS SVN: r84836 - projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Feb 26 22:10:41 EST 2009
Author: jeff.zhang
Date: 2009-02-26 22:10:40 -0500 (Thu, 26 Feb 2009)
New Revision: 84836
Added:
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/PeriodicExecutionTestCase.java
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/WorkListenerInterfaceTestCase.java
Modified:
projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/WorkManagerInterfaceTestCase.java
Log:
[JBJCA-33] add some tests plan
Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/PeriodicExecutionTestCase.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/PeriodicExecutionTestCase.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/PeriodicExecutionTestCase.java 2009-02-27 03:10:40 UTC (rev 84836)
@@ -0,0 +1,70 @@
+/*
+ * 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;
+
+/**
+ * PeriodicExecutionTestCase.
+ *
+ * Tests for the JCA specific Chapter 10 Section 3.7
+ *
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
+ * @version $Revision: $
+ */
+public class PeriodicExecutionTestCase
+{
+
+
+ /**
+ * Test for paragraph 1
+ * A resource adapter may need to periodically execute Work instances.
+ */
+ @Test
+ public void testPeriodicExecution() throws Throwable
+ {
+
+ }
+
+ /**
+ * Test for paragraph 3
+ * The application server must throw an UnavailableException if a Timer instance is unavailable; the resource
+ * adapter may retry later.
+ */
+ @Ignore
+ public void testThrowUnavailableException() throws Throwable
+ {
+ }
+
+ /**
+ * Test for paragraph 3
+ * The application server must throw an java.lang.UnsupportedOperationException, if it does not support the Timer service.
+ */
+ @Ignore
+ public void testThrowUnsupportedOperationException() throws Throwable
+ {
+ }
+}
\ No newline at end of file
Property changes on: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/PeriodicExecutionTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Reversion Date
Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/WorkListenerInterfaceTestCase.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/WorkListenerInterfaceTestCase.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/WorkListenerInterfaceTestCase.java 2009-02-27 03:10:40 UTC (rev 84836)
@@ -0,0 +1,144 @@
+/*
+ * 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;
+
+/**
+ * WorkListenerInterfaceTestCase.
+ *
+ * Tests for the JCA specific Chapter 10 Section 3.3/3.4
+ *
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
+ * @version $Revision: $
+ */
+public class WorkListenerInterfaceTestCase
+{
+
+ /**
+ * Test for paragraph 1 Section 3.3.1
+ *
+ */
+ @Test
+ public void testWorkSubmitStatus() throws Throwable
+ {
+ }
+
+ /**
+ * Test for paragraph 1 Section 3.3.2
+ */
+ @Ignore
+ public void testWorkAcceptedStatus() throws Throwable
+ {
+ }
+
+ /**
+ * Test for paragraph 1 Section 3.3.3
+ */
+ @Ignore
+ public void testWorkRejectedStatus() throws Throwable
+ {
+ }
+
+ /**
+ * Test for paragraph 1 Section 3.3.4
+ */
+ @Ignore
+ public void testWorkStartedStatus() throws Throwable
+ {
+ }
+
+ /**
+ * Test for paragraph 1 Section 3.3.5
+ */
+ @Ignore
+ public void testWorkCompletedStatus() throws Throwable
+ {
+ }
+
+ /**
+ * Test for bullet 1 paragraph 2 Section 3.4
+ * The WorkEvent instance provides The event type.
+ */
+ @Ignore
+ public void testWorkEventInheritEventObject() throws Throwable
+ {
+ }
+
+ /**
+ * Test for bullet 2 paragraph 2 Section 3.4
+ * The source object, that is, the Work instance, on which the event initially occurred.
+ */
+ @Ignore
+ public void testSourceObjectIsInitial() throws Throwable
+ {
+ }
+
+ /**
+ * Test for bullet 3 paragraph 2 Section 3.4
+ * A handle to the associated Work instance.
+ */
+ @Ignore
+ public void testHandleAssociatedWork() throws Throwable
+ {
+ }
+
+ /**
+ * Test for bullet 4 paragraph 2 Section 3.4
+ * An optional start delay duration in millisecond.
+ */
+ @Ignore
+ public void testStartDelayDuration() throws Throwable
+ {
+ }
+
+ /**
+ * Test for paragraph 4 Section 3.4
+ * The WorkAdapter class is provided as a convenience for easily creating
+ */
+ @Ignore
+ public void testWorkAdapter() throws Throwable
+ {
+ }
+
+ /**
+ * Test for bullet 1 Section 3.4.1
+ * The WorkListener instance must not make any thread assumptions and must be thread-safe
+ */
+ @Ignore
+ public void testWorkListenerThreadSafe() throws Throwable
+ {
+ }
+
+ /**
+ * Test for bullet 3 Section 3.4.1
+ * The WorkListener implementation must not make any assumptions on the ordering of notifications.
+ */
+ @Ignore
+ public void testNotificationWithoutOrder() throws Throwable
+ {
+ }
+}
\ No newline at end of file
Property changes on: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/WorkListenerInterfaceTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Reversion Date
Modified: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/WorkManagerInterfaceTestCase.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/WorkManagerInterfaceTestCase.java 2009-02-27 03:05:13 UTC (rev 84835)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/test/core/spec/chapter10/section3/WorkManagerInterfaceTestCase.java 2009-02-27 03:10:40 UTC (rev 84836)
@@ -126,5 +126,34 @@
public void testStartTimeoutThrowWorkRejectedException() throws Throwable
{
}
+
+ /**
+ * Test for bullet 1 Section 3.3.6
+ * The application server must implement the WorkManager interface
+ */
+ @Ignore
+ public void testAsImplementWorkManagerInterface() throws Throwable
+ {
+ }
+
+ /**
+ * Test for bullet 2 Section 3.3.6
+ * The application server must allow nested Work submissions.
+ */
+ @Ignore
+ public void testAllowNestedWork() throws Throwable
+ {
+ }
+
+ /**
+ * Test for bullet 4 Section 3.3.6
+ * When the application server is unable to recreate an execution context if it is
+ * specified for the submitted Work instance, it must throw a
+ * WorkCompletedException set to an appropriate error code.
+ */
+ @Ignore
+ public void testThrowWorkCompletedException() throws Throwable
+ {
+ }
}
More information about the jboss-cvs-commits
mailing list