| Method from javax.jms.TransactionInProgressExceptionTest Detail: |
public void testConstructorNull() {
TransactionInProgressException ex = new TransactionInProgressException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
|
public void testConstructorNullNull() {
TransactionInProgressException ex = new TransactionInProgressException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
|
public void testConstructorNullString() {
String expected = "some code";
TransactionInProgressException ex = new TransactionInProgressException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
|
public void testConstructorString() {
String expected = "some message";
TransactionInProgressException ex = new TransactionInProgressException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
|
public void testConstructorStringNull() {
String expected = "some message";
TransactionInProgressException ex = new TransactionInProgressException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
|
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
TransactionInProgressException ex = new TransactionInProgressException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
|