[weld-commits] Weld SVN: r5112 - cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Mon Nov 23 09:41:59 EST 2009


Author: dallen6
Date: 2009-11-23 09:41:58 -0500 (Mon, 23 Nov 2009)
New Revision: 5112

Modified:
   cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/DogAgent.java
   cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/TransactionalObserversTest.java
Log:
CDITCK-75

Modified: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/DogAgent.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/DogAgent.java	2009-11-23 08:18:20 UTC (rev 5111)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/DogAgent.java	2009-11-23 14:41:58 UTC (rev 5112)
@@ -3,7 +3,6 @@
 import static javax.ejb.TransactionManagementType.BEAN;
 
 import javax.annotation.Resource;
-import javax.annotation.security.RunAs;
 import javax.ejb.EJBException;
 import javax.ejb.Stateless;
 import javax.ejb.TransactionManagement;
@@ -15,7 +14,6 @@
 
 @Stateless
 @TransactionManagement(BEAN)
- at RunAs("Bubba")
 @Named
 @Default
 public class DogAgent implements Agent

Modified: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/TransactionalObserversTest.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/TransactionalObserversTest.java	2009-11-23 08:18:20 UTC (rev 5111)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/TransactionalObserversTest.java	2009-11-23 14:41:58 UTC (rev 5112)
@@ -50,19 +50,6 @@
       dog = (PomeranianInterface) getInstanceByName("Teddy");
    }
 
-//   @AfterMethod(alwaysRun = true)
-//   public void teardownTest()
-//   {
-//      try
-//      {
-//         dog.removeSessionBean();
-//      }
-//      catch (Exception e)
-//      {
-//         // Not important since the bean is now gone one way or the other
-//      }
-//   }
-
    @Test(groups = { "events", "integration" })
    @SpecAssertion(section = "10.4.4", id = "a")
    public void testTransactionalObserverNotifiedImmediatelyWhenNoTransactionInProgress()
@@ -73,8 +60,6 @@
       assert dogAgent != null;
       dogAgent.sendOutsideTransaction(BigInteger.TEN);
       assert dog.isCorrectTransactionState();
-      // TODO Fix the security contexts
-      // assert dog.isCorrectContext();
    }
 
    @Test(groups = { "events", "integration" })
@@ -135,8 +120,6 @@
       Agent dogAgent = getInstanceByType(Agent.class);
       dogAgent.sendInTransaction(new RuntimeException("test event"));
       assert dog.isCorrectTransactionState();
-      // TODO Fix the security contexts
-      // assert dog.isCorrectContext();
    }
 
    @Test(groups = { "events", "integration" })



More information about the weld-commits mailing list