DATACMNS-1554 - Polishing.
Replace AtTest(expected = …) and ExpectedException with the corresponding AssertJ assertThatExceptionOfType(…) and assertThatIllegalArgumentException().isThrownBy(…).
This commit is contained in:
@@ -111,12 +111,13 @@ public class ChainedTransactionManagerTests {
|
||||
|
||||
}
|
||||
|
||||
@Test(expected = UnexpectedRollbackException.class)
|
||||
@Test
|
||||
public void shouldThrowExceptionOnFailingRollback() {
|
||||
|
||||
PlatformTransactionManager first = createFailingTransactionManager("first");
|
||||
setupTransactionManagers(first);
|
||||
createAndRollbackTransaction();
|
||||
|
||||
assertThatExceptionOfType(UnexpectedRollbackException.class).isThrownBy(this::createAndRollbackTransaction);
|
||||
}
|
||||
|
||||
private void setupTransactionManagers(PlatformTransactionManager... transactionManagers) {
|
||||
|
||||
Reference in New Issue
Block a user