[webbeans-commits] Webbeans SVN: r3541 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Mon Aug 17 14:37:56 EDT 2009
Author: pete.muir at jboss.org
Date: 2009-08-17 14:37:56 -0400 (Mon, 17 Aug 2009)
New Revision: 3541
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/DogAgent.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/TransactionalObserversTest.java
Log:
Don't upset the TM
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/DogAgent.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/DogAgent.java 2009-08-17 18:34:04 UTC (rev 3540)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/DogAgent.java 2009-08-17 18:37:56 UTC (rev 3541)
@@ -52,7 +52,7 @@
}
finally
{
- //userTransaction.commit();
+ userTransaction.rollback();
}
}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/TransactionalObserversTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/TransactionalObserversTest.java 2009-08-17 18:34:04 UTC (rev 3540)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/transactional/TransactionalObserversTest.java 2009-08-17 18:37:56 UTC (rev 3541)
@@ -124,7 +124,10 @@
}
catch (Exception e)
{
- // Container will complain, we failed to complete the TX!
+ if (!isThrowablePresent(FooException.class, e))
+ {
+ throw e;
+ }
}
Thread.sleep(100);
assert dog.isCorrectTransactionState();
More information about the weld-commits
mailing list