Author: pete.muir(a)jboss.org
Date: 2009-03-08 19:41:10 -0400 (Sun, 08 Mar 2009)
New Revision: 1824
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/transactionalObservers/EventTest.java
Log:
Broken test
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-03-08
22:37:17 UTC (rev 1823)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/transactionalObservers/EventTest.java 2009-03-08
23:41:10 UTC (rev 1824)
@@ -30,8 +30,6 @@
import org.jboss.jsr299.tck.impl.packaging.Artifact;
import org.jboss.jsr299.tck.impl.packaging.IntegrationTest;
import org.jboss.jsr299.tck.impl.packaging.Packaging;
-import org.testng.annotations.AfterMethod;
-import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
/**
@@ -53,7 +51,6 @@
};
private PomeranianInterface dog;
- @BeforeMethod(alwaysRun = true,dependsOnMethods="beforeMethod")
public void setupTest()
{
dog = (PomeranianInterface)
getCurrentManager().getInstanceByName("Teddy");
@@ -76,6 +73,7 @@
@SpecAssertion(section = "7.5.6", id = "a")
public void testTransactionalObserverNotifiedImmediatelyWhenNoTransactionInProgress()
{
+ setupTest();
dog.setCorrectContext(false);
dog.setCorrectTransactionState(false);
Agent dogAgent = getCurrentManager().getInstanceByType(Agent.class);
@@ -90,6 +88,7 @@
@SpecAssertions( { @SpecAssertion(section = "7.5.6", id = "c"),
@SpecAssertion(section = "7.5.6", id = "f"), @SpecAssertion(section =
"7.5.6", id = "i"), @SpecAssertion(section = "7.5.8", id =
"f") })
public void testAfterTransactionCompletionObserver()
{
+ setupTest();
dog.setCorrectContext(false);
dog.setCorrectTransactionState(false);
assert !getCurrentManager().resolveObservers("event").isEmpty();
@@ -102,6 +101,7 @@
@SpecAssertions( { @SpecAssertion(section = "7.5.6", id = "d"),
@SpecAssertion(section = "7.5.6", id = "j") })
public void testAfterTransactionSuccessObserver()
{
+ setupTest();
dog.setCorrectContext(false);
dog.setCorrectTransactionState(false);
Agent dogAgent = getCurrentManager().getInstanceByType(Agent.class);
@@ -109,10 +109,14 @@
assert dog.isCorrectTransactionState();
}
- @Test(groups = { "events", "integration" })
- @SpecAssertions( { @SpecAssertion(section = "7.5.6", id = "e"),
@SpecAssertion(section = "7.5.6", id = "k") })
+ @Test(groups = { "events", "integration", "ri-broken"
})
+ @SpecAssertions({
+ @SpecAssertion(section = "7.5.6", id = "e"),
+ @SpecAssertion(section = "7.5.6", id = "k")
+ })
public void testAfterTransactionFailureObserver()
{
+ setupTest();
dog.setCorrectContext(false);
dog.setCorrectTransactionState(false);
Agent dogAgent = getCurrentManager().getInstanceByType(Agent.class);
@@ -124,6 +128,7 @@
@SpecAssertions( { @SpecAssertion(section = "7.5.6", id = "b"),
@SpecAssertion(section = "7.5.6", id = "h") })
public void testBeforeTransactionCompletionObserver()
{
+ setupTest();
dog.setCorrectContext(false);
dog.setCorrectTransactionState(false);
Agent dogAgent = getCurrentManager().getInstanceByType(Agent.class);
@@ -142,6 +147,7 @@
@SpecAssertion(section = "7.5.7", id = "c")
public void testAsynchronousObserverAlsoTransactional()
{
+ setupTest();
dog.setCorrectContext(false);
dog.setCorrectTransactionState(false);
Agent dogAgent = getCurrentManager().getInstanceByType(Agent.class);
Show replies by date