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
@@ -482,7 +482,7 @@ public class MessageBrokerConfigurationTests {
|
||||
assertThat(handler.getBroadcastDestination()).isNull();
|
||||
|
||||
Object nullBean = context.getBean("userRegistryMessageHandler");
|
||||
assertThat(nullBean.equals(null)).isTrue();
|
||||
assertThat(nullBean).isEqualTo(null);
|
||||
}
|
||||
|
||||
@Test // SPR-16275
|
||||
|
||||
Reference in New Issue
Block a user