Browse Source

Avoid using org.springframework.boot

pull/29247/head
Stephane Nicoll 4 years ago
parent
commit
ce46170a04
  1. 4
      spring-core-test/src/test/java/org/springframework/core/test/tools/SourceFileTests.java

4
spring-core-test/src/test/java/org/springframework/core/test/tools/SourceFileTests.java

@ -152,8 +152,8 @@ class SourceFileTests { @@ -152,8 +152,8 @@ class SourceFileTests {
package com.example;
public record RecordProperties(
@org.springframework.boot.context.properties.bind.DefaultValue("default-value-1") String property1,
@org.springframework.boot.context.properties.bind.DefaultValue("default-value-2") String property2) {
@org.springframework.lang.NonNull("test") String property1,
@org.springframework.lang.NonNull("test") String property2) {
}
""");
assertThat(sourceFile.getClassName()).isEqualTo("com.example.RecordProperties");

Loading…
Cancel
Save