Skip to content

Commit a2d70d4

Browse files
committed
Merge pull request #20604 from dreis2211
* pr/20604: Polish BindableTests Closes gh-20604
2 parents 8593270 + 6ff8424 commit a2d70d4

File tree

1 file changed

+1
-34
lines changed
  • spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind

1 file changed

+1
-34
lines changed

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

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -143,7 +143,6 @@ void getAnnotationWhenNoMatchShouldReturnNull() {
143143
void toStringShouldShowDetails() {
144144
Annotation annotation = AnnotationUtils.synthesizeAnnotation(TestAnnotation.class);
145145
Bindable<String> bindable = Bindable.of(String.class).withExistingValue("foo").withAnnotations(annotation);
146-
System.out.println(bindable.toString());
147146
assertThat(bindable.toString())
148147
.contains("type = java.lang.String, value = 'provided', annotations = array<Annotation>["
149148
+ "@org.springframework.boot.context.properties.bind.BindableTests$TestAnnotation()]");
@@ -179,36 +178,4 @@ void withSuppliedValueDoesNotForgetAnnotations() {
179178

180179
}
181180

182-
static class TestNewInstance {
183-
184-
private String foo = "hello world";
185-
186-
String getFoo() {
187-
return this.foo;
188-
}
189-
190-
void setFoo(String foo) {
191-
this.foo = foo;
192-
}
193-
194-
}
195-
196-
static class TestNewInstanceWithNoDefaultConstructor {
197-
198-
TestNewInstanceWithNoDefaultConstructor(String foo) {
199-
this.foo = foo;
200-
}
201-
202-
private String foo = "hello world";
203-
204-
String getFoo() {
205-
return this.foo;
206-
}
207-
208-
void setFoo(String foo) {
209-
this.foo = foo;
210-
}
211-
212-
}
213-
214181
}

0 commit comments

Comments
 (0)