Search in sources :

Example 1 with ObjectStoreError

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

the class ExceptionsUnitTest method test.

@Test
public void test() {
    FatalError fe = new FatalError();
    fe = new FatalError("problem");
    fe = new FatalError("problem", new NullPointerException());
    fe = new FatalError(new NullPointerException());
    ObjectStoreError os = new ObjectStoreError();
    os = new ObjectStoreError("problem");
    os = new ObjectStoreError("problem", new NullPointerException());
    os = new ObjectStoreError(new NullPointerException());
    ObjectStoreException ox = new ObjectStoreException();
    ox = new ObjectStoreException("problem");
    ox = new ObjectStoreException("problem", new NullPointerException());
    ox = new ObjectStoreException(new NullPointerException());
}
Also used : FatalError(com.arjuna.ats.arjuna.exceptions.FatalError) ObjectStoreException(com.arjuna.ats.arjuna.exceptions.ObjectStoreException) ObjectStoreError(com.arjuna.ats.arjuna.exceptions.ObjectStoreError) Test(org.junit.Test)

Aggregations

FatalError (com.arjuna.ats.arjuna.exceptions.FatalError)1 ObjectStoreError (com.arjuna.ats.arjuna.exceptions.ObjectStoreError)1 ObjectStoreException (com.arjuna.ats.arjuna.exceptions.ObjectStoreException)1 Test (org.junit.Test)1