Search in sources :

Example 1 with NotImplementedException

use of com.arjuna.ats.jta.exceptions.NotImplementedException in project narayana by jbosstm.

the class ExceptionsUnitTest method test.

@Test
public void test() throws Exception {
    InactiveTransactionException ex = new InactiveTransactionException();
    ex = new InactiveTransactionException("foobar");
    NotImplementedException exp = new NotImplementedException();
    exp = new NotImplementedException("foobar");
    exp = new NotImplementedException("foobar", new NullPointerException());
    exp = new NotImplementedException(new NullPointerException());
    RollbackException exp2 = new RollbackException();
    exp2 = new RollbackException("foobar");
    exp2 = new RollbackException("foobar", new NullPointerException());
    exp2 = new RollbackException(new NullPointerException());
    UnexpectedConditionException ex2 = new UnexpectedConditionException();
    ex2 = new UnexpectedConditionException("foobar");
}
Also used : NotImplementedException(com.arjuna.ats.jta.exceptions.NotImplementedException) UnexpectedConditionException(com.arjuna.ats.jta.exceptions.UnexpectedConditionException) RollbackException(com.arjuna.ats.jta.exceptions.RollbackException) InactiveTransactionException(com.arjuna.ats.jta.exceptions.InactiveTransactionException) Test(org.junit.Test)

Aggregations

InactiveTransactionException (com.arjuna.ats.jta.exceptions.InactiveTransactionException)1 NotImplementedException (com.arjuna.ats.jta.exceptions.NotImplementedException)1 RollbackException (com.arjuna.ats.jta.exceptions.RollbackException)1 UnexpectedConditionException (com.arjuna.ats.jta.exceptions.UnexpectedConditionException)1 Test (org.junit.Test)1