Skip to content

Commit

Permalink
Avoid using org.springframework.boot
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Oct 3, 2022
1 parent 0b5c3ec commit ce46170
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ void getClassNameFromAnnotatedRecord() {
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");
Expand Down

0 comments on commit ce46170

Please sign in to comment.