Fix assertion due to toString change in Spring Framework

This commit is contained in:
Stephane Nicoll 2022-02-13 18:00:45 +01:00
parent 387795d4db
commit 1f01345057

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -146,7 +146,7 @@ class BindableTests {
Bindable<String> bindable = Bindable.of(String.class).withExistingValue("foo").withAnnotations(annotation);
assertThat(bindable.toString())
.contains("type = java.lang.String, value = 'provided', annotations = array<Annotation>["
+ "@org.springframework.boot.context.properties.bind.BindableTests$TestAnnotation()]");
+ "@org.springframework.boot.context.properties.bind.BindableTests.TestAnnotation()]");
}
@Test