Skip to content

Commit 93436f2

Browse files
committed
Correct assertion in test for member with private constructor
See gh-32639
1 parent a34b1d3 commit 93436f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/DefaultBindConstructorProviderTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void getBindConstructorWhenHasTwoConstructorsWithBothConstructorBindingThrowsExc
9494
void getBindConstructorWhenIsMemberTypeWithPrivateConstructorReturnsNull() {
9595
Constructor<?> constructor = this.provider.getBindConstructor(MemberTypeWithPrivateConstructor.Member.class,
9696
false);
97-
assertThat(constructor).isNotNull();
97+
assertThat(constructor).isNull();
9898
}
9999

100100
static class OnlyDefaultConstructor {

0 commit comments

Comments
 (0)