From 93436f29dd5fdcce3ed8edc48d7c01eb1a175d0c Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 18 Oct 2022 10:05:09 +0100 Subject: [PATCH] Correct assertion in test for member with private constructor See gh-32639 --- .../properties/bind/DefaultBindConstructorProviderTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/DefaultBindConstructorProviderTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/DefaultBindConstructorProviderTests.java index 5c646e3c40..dbe76bb34d 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/DefaultBindConstructorProviderTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/DefaultBindConstructorProviderTests.java @@ -94,7 +94,7 @@ class DefaultBindConstructorProviderTests { void getBindConstructorWhenIsMemberTypeWithPrivateConstructorReturnsNull() { Constructor constructor = this.provider.getBindConstructor(MemberTypeWithPrivateConstructor.Member.class, false); - assertThat(constructor).isNotNull(); + assertThat(constructor).isNull(); } static class OnlyDefaultConstructor {