[webbeans-commits] Webbeans SVN: r3087 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/transactionalObservers.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Sun Jul 19 09:31:12 EDT 2009
Author: shane.bryzak at jboss.com
Date: 2009-07-19 09:31:12 -0400 (Sun, 19 Jul 2009)
New Revision: 3087
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/transactionalObservers/EventTest.java
Log:
matched transactional observer tests to assertions
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/transactionalObservers/EventTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/transactionalObservers/EventTest.java 2009-07-19 12:58:11 UTC (rev 3086)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/transactionalObservers/EventTest.java 2009-07-19 13:31:12 UTC (rev 3087)
@@ -37,7 +37,7 @@
*
* @author David Allen
*
- * Spec version: Public Release Draft 2
+ * Spec version: 20090625
*
*/
@Artifact
@@ -72,7 +72,7 @@
// }
@Test(groups = { "events", "integration" })
- @SpecAssertion(section = "7.5.6", id = "a")
+ @SpecAssertion(section = "10.4.5", id = "a")
public void testTransactionalObserverNotifiedImmediatelyWhenNoTransactionInProgress()
{
dog.setCorrectContext(false);
@@ -86,7 +86,7 @@
}
@Test(groups = { "events", "integration", "broken" })
- @SpecAssertions( { @SpecAssertion(section = "7.5.6", id = "c"), @SpecAssertion(section = "7.5.6", id = "i"), @SpecAssertion(section = "7.5.8", id = "d"), @SpecAssertion(section = "7.5.8", id = "f") })
+ @SpecAssertions( { @SpecAssertion(section = "10.4.5", id = "c"), @SpecAssertion(section = "7.5.6", id = "i"), @SpecAssertion(section = "7.5.8", id = "d"), @SpecAssertion(section = "7.5.8", id = "f") })
public void testAfterTransactionCompletionObserver() throws InterruptedException
{
dog.setCorrectContext(false);
@@ -99,9 +99,7 @@
}
@Test(groups = { "events", "integration", "broken" })
- @SpecAssertions( {
- @SpecAssertion(section = "7.5.6", id = "d"),
- @SpecAssertion(section = "7.5.6", id = "j") })
+ @SpecAssertion(section = "10.4.5", id = "d")
public void testAfterTransactionSuccessObserver() throws InterruptedException
{
dog.setCorrectContext(false);
@@ -113,9 +111,7 @@
}
@Test(groups = { "events", "integration", "ri-broken" })
- @SpecAssertions( {
- @SpecAssertion(section = "7.5.6", id = "e"),
- @SpecAssertion(section = "7.5.6", id = "k") })
+ @SpecAssertion(section = "10.4.5", id = "e")
public void testAfterTransactionFailureObserver() throws InterruptedException
{
dog.setCorrectContext(false);
@@ -128,9 +124,8 @@
@Test(groups = { "events", "integration", "broken" })
@SpecAssertions( {
- @SpecAssertion(section = "7.5.6", id = "b"),
- @SpecAssertion(section = "7.5.6", id = "h"),
- @SpecAssertion(section = "7.5.8", id = "e") })
+ @SpecAssertion(section = "10.4.5", id = "b"),
+ @SpecAssertion(section = "10.4.5", id = "e") })
public void testBeforeTransactionCompletionObserver()
{
dog.setCorrectContext(false);
@@ -142,15 +137,8 @@
// assert dog.isCorrectContext();
}
- @Test(groups = { "stub", "events", "integration" })
- @SpecAssertions( { @SpecAssertion(section = "7.5.6", id = "g") })
- public void testTransactionalObserverDefinedByXML()
- {
- assert false;
- }
-
@Test(groups = { "events", "ri-broken" })
- @SpecAssertion(section = "7.5.7", id = "c")
+ @SpecAssertion(section = "review", id = "review") // the spec now only mentions asynchronous observer methods in passing
public void testAsynchronousObserverAlsoTransactional() throws InterruptedException
{
dog.setCorrectContext(false);
@@ -168,7 +156,7 @@
* completion phase.
*/
@Test(groups = { "stub", "events" })
- @SpecAssertion(section = "7.5.8", id = "e")
+ @SpecAssertion(section = "review", id = "review")
public void testAsynchronousTransactionalObserverCalledAfterCompletion()
{
assert false;
@@ -180,7 +168,7 @@
* Event.fire().
*/
@Test(groups = { "stub", "events", "integration" })
- @SpecAssertion(section = "7.5.9", id = "d")
+ @SpecAssertion(section = "10.5.1", id = "da")
public void testObserverMethodCalledInSameContexts()
{
assert false;
@@ -193,7 +181,7 @@
* context and lifecycle contexts.
*/
@Test(groups = { "stub", "events", "integration" })
- @SpecAssertion(section = "7.5.9", id = "b")
+ @SpecAssertion(section = "10.5.1", id = "ba")
public void testBeforeTransactionCompletionObserverMethodContexts()
{
assert false;
@@ -206,14 +194,14 @@
* transaction that just completed.
*/
@Test(groups = { "stub", "events", "integration" })
- @SpecAssertion(section = "7.5.9", id = "c")
+ @SpecAssertion(section = "10.5.1", id = "c")
public void testOtherTransactionalObserverMethodContexts()
{
assert false;
}
@Test(groups = { "events", "integration" })
- @SpecAssertion(section = "7.4", id = "d")
+ @SpecAssertion(section = "10.5", id = "bd")
public void testObserverCanSetRollbackOnlyOnTransaction()
{
Agent dogAgent = getInstanceByType(Agent.class);
@@ -221,7 +209,7 @@
}
@Test(groups = { "ri-broken", "events", "integration" }, expectedExceptions = EJBException.class)
- @SpecAssertion(section = "7.4", id = "e")
+ @SpecAssertion(section = "10.5", id = "bd")
public void testObserverCannotInitiateJtaTransaction()
{
Agent dogAgent = getInstanceByType(Agent.class);
@@ -229,7 +217,7 @@
}
@Test(groups = { "ri-broken", "events", "integration" }, expectedExceptions = EJBException.class)
- @SpecAssertion(section = "7.4", id = "f")
+ @SpecAssertion(section = "10.5", id = "bd")
public void testObserverCannotCommitJtaTransaction()
{
Agent dogAgent = getInstanceByType(Agent.class);
@@ -237,7 +225,7 @@
}
@Test(groups = { "ri-broken", "events", "integration" }, expectedExceptions = EJBException.class)
- @SpecAssertion(section = "7.4", id = "g")
+ @SpecAssertion(section = "10.5", id = "bd")
public void testObserverCannotRollbackJtaTransaction()
{
Agent dogAgent = getInstanceByType(Agent.class);
More information about the weld-commits
mailing list