DBZ-2555 Cleanup test assertions
This commit is contained in:
parent
9e730cc994
commit
6972dab987
@ -6,6 +6,7 @@
|
||||
package io.debezium.connector.oracle.logminer;
|
||||
|
||||
import static org.fest.assertions.Assertions.assertThat;
|
||||
import static org.junit.Assert.fail;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.times;
|
||||
import static org.mockito.Mockito.verify;
|
||||
@ -168,7 +169,7 @@ public void testGetTableId() throws SQLException {
|
||||
tableId = null;
|
||||
try {
|
||||
tableId = RowMapper.getTableId("catalog", rs);
|
||||
assertThat(1 == 2).isTrue();
|
||||
fail("RowMapper should not have returned a TableId");
|
||||
}
|
||||
catch (SQLException e) {
|
||||
assertThat(tableId).isNull();
|
||||
@ -188,7 +189,7 @@ public void testGetTableIdWithVariedCase() throws SQLException {
|
||||
tableId = null;
|
||||
try {
|
||||
tableId = RowMapper.getTableId("catalog", rs);
|
||||
assertThat(1 == 2).isTrue();
|
||||
fail("RowMapper should not have returned a TableId");
|
||||
}
|
||||
catch (SQLException e) {
|
||||
assertThat(tableId).isNull();
|
||||
|
Loading…
Reference in New Issue
Block a user