Correct assertion in test for member with private constructor

See gh-32639
This commit is contained in:
Andy Wilkinson
2022-10-18 10:05:09 +01:00
parent a34b1d3c6e
commit 93436f29dd

View File

@@ -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 {