Replace assertThat(x.equals(y)) with assertThat(x).isEqualTo(y)
Search for : assertThat\((.+)\.equals\((\w+)\)\)\.isTrue\(\) Replace with : assertThat($1).isEqualTo($2) Search for : assertThat\((.+)\.equals\((\w+)\)\)\.isFalse\(\) Replace with : assertThat($1).isNotEqualTo($2) Closes gh-31763
This commit is contained in:
committed by
Brian Clozel
parent
e2852e7355
commit
7b16ef90f1
@@ -126,8 +126,8 @@ class TransactionAwareConnectionFactoryProxyUnitTests {
|
||||
new TransactionAwareConnectionFactoryProxy(connectionFactoryMock).create()
|
||||
.map(Connection.class::cast).as(StepVerifier::create)
|
||||
.consumeNextWith(connection -> {
|
||||
assertThat(connection.equals(connection)).isTrue();
|
||||
assertThat(connection.equals(connectionMock1)).isFalse();
|
||||
assertThat(connection).isEqualTo(connection);
|
||||
assertThat(connection).isNotEqualTo(connectionMock1);
|
||||
}).verifyComplete();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user