mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Convert assertThat(Boolean.TRUE).isEqualTo(x) to assertThat(x).isEqualTo(Boolean.TRUE)
See gh-36504
This commit is contained in:
+1
-1
@@ -599,7 +599,7 @@ abstract class AbstractPropertyAccessorTests {
|
||||
AbstractPropertyAccessor accessor = createAccessor(target);
|
||||
|
||||
accessor.setPropertyValue("bool2", "true");
|
||||
assertThat(Boolean.TRUE).as("Correct bool2 value").isEqualTo(accessor.getPropertyValue("bool2"));
|
||||
assertThat(accessor.getPropertyValue("bool2")).as("Correct bool2 value").isEqualTo(Boolean.TRUE);
|
||||
assertThat(target.getBool2()).as("Correct bool2 value").isTrue();
|
||||
|
||||
accessor.setPropertyValue("bool2", "false");
|
||||
|
||||
+3
-3
@@ -187,7 +187,7 @@ class CustomEditorTests {
|
||||
BeanWrapper bw = new BeanWrapperImpl(tb);
|
||||
|
||||
bw.setPropertyValue("bool1", "true");
|
||||
assertThat(Boolean.TRUE).as("Correct bool1 value").isEqualTo(bw.getPropertyValue("bool1"));
|
||||
assertThat(bw.getPropertyValue("bool1")).as("Correct bool1 value").isEqualTo(Boolean.TRUE);
|
||||
assertThat(tb.isBool1()).as("Correct bool1 value").isTrue();
|
||||
|
||||
bw.setPropertyValue("bool1", "false");
|
||||
@@ -228,7 +228,7 @@ class CustomEditorTests {
|
||||
BeanWrapper bw = new BeanWrapperImpl(tb);
|
||||
|
||||
bw.setPropertyValue("bool2", "true");
|
||||
assertThat(Boolean.TRUE).as("Correct bool2 value").isEqualTo(bw.getPropertyValue("bool2"));
|
||||
assertThat(bw.getPropertyValue("bool2")).as("Correct bool2 value").isEqualTo(Boolean.TRUE);
|
||||
assertThat(tb.getBool2().booleanValue()).as("Correct bool2 value").isTrue();
|
||||
|
||||
bw.setPropertyValue("bool2", "false");
|
||||
@@ -264,7 +264,7 @@ class CustomEditorTests {
|
||||
bw.registerCustomEditor(Boolean.class, new CustomBooleanEditor(true));
|
||||
|
||||
bw.setPropertyValue("bool2", "true");
|
||||
assertThat(Boolean.TRUE).as("Correct bool2 value").isEqualTo(bw.getPropertyValue("bool2"));
|
||||
assertThat(bw.getPropertyValue("bool2")).as("Correct bool2 value").isEqualTo(Boolean.TRUE);
|
||||
assertThat(tb.getBool2().booleanValue()).as("Correct bool2 value").isTrue();
|
||||
|
||||
bw.setPropertyValue("bool2", "false");
|
||||
|
||||
Reference in New Issue
Block a user