-
Notifications
You must be signed in to change notification settings - Fork 41.8k
Use static imports for Assertions.assertThat() consistently #48630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Johnny Lim <[email protected]>
snicoll
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. We are not using the static import in assert implementations (main code). I think we should keep it this way. WDYT?
|
@snicoll Thanks for the feedback! I don't have a strong opinion on it. I just thought that it's prefered based on the following changes: 90faddf#diff-e9d603edb2e72b3fc962233b6ae08d6391b61bb776bc86ce2039df7860f05866R233 |
|
Good point, I remember reviewing this and then going with it as the OP is an AssertJ maintainer but I think we may want to reconsider this. I'll flag for team attention to get more feedback. |
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Vincent Potucek <[email protected]>
Signed-off-by: Vincent Potucek <[email protected]> ``` Changes have been made to build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/ClassPath.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$PathOfUriRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/io/InspectedContent.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$FilesCreateTempFileToFileRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/Cache.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/BuildpackReference.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$PathOfUriRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/configuration/DockerConfigurationMetadataTests.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$PathOfUriRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/configuration/ResolvedDockerHostTests.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$PathOfUriRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/EphemeralBuilderTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$UtcConstantRecipe tech.picnic.errorprone.refasterrules.TimeRulesRecipes$InstantAtOffsetRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/BuildRequestTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$UtcConstantRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/ImageBuildpackTests.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$FilesCreateTempFileToFileRecipe Changes have been made to cli/spring-boot-cli/src/test/resources/commands/command.groovy by: org.openrewrite.java.format.RemoveTrailingWhitespace Changes have been made to cli/spring-boot-cli/src/test/resources/dir-sample/code/app.groovy by: org.openrewrite.java.format.RemoveTrailingWhitespace Changes have been made to cli/spring-boot-cli/src/test/resources/scripts/closure.groovy by: org.openrewrite.java.format.RemoveTrailingWhitespace Changes have been made to cli/spring-boot-cli/src/test/resources/scripts/command.groovy by: org.openrewrite.java.format.RemoveTrailingWhitespace Changes have been made to core/spring-boot/src/test/java/org/springframework/boot/info/SslInfoTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$UtcConstantRecipe Changes have been made to core/spring-boot/src/test/java/org/springframework/boot/logging/AbstractLoggingSystemTests.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$FilesCreateTempFileToFileRecipe Changes have been made to core/spring-boot/src/test/java/org/springframework/boot/convert/PeriodToStringConverterTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$ZeroPeriodRecipe Changes have been made to core/spring-boot/src/test/java/org/springframework/boot/convert/PeriodStyleTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$ZeroPeriodRecipe Changes have been made to core/spring-boot-test/src/main/java/org/springframework/boot/test/util/TestPropertyValues.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to core/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCapture.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityLambdaRecipe Changes have been made to loader/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/nested/NestedUrlConnection.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$UtcConstantRecipe Changes have been made to loader/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/SizeCalculatingEntryWriter.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$FilesCreateTempFileToFileRecipe Changes have been made to module/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/exchanges/HttpExchange.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$ClockInstantRecipe Changes have been made to module/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/management/HeapDumpWebEndpoint.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$FilesCreateTempFileToFileRecipe Changes have been made to module/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/InfoPropertiesInfoContributor.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to module/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoker/cache/CachingOperationInvoker.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/filewatch/ChangedFile.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to module/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/MainMethodTests.java by: org.openrewrite.staticanalysis.ReplaceLambdaWithMethodReference Changes have been made to module/spring-boot-jetty/src/main/java/org/springframework/boot/jetty/autoconfigure/JettyWebServerFactoryCustomizer.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to module/spring-boot-jetty/src/test/java/org/springframework/boot/jetty/autoconfigure/JettyWebServerFactoryCustomizerTests.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$FilesCreateTempFileToFileRecipe Changes have been made to module/spring-boot-kafka/src/main/java/org/springframework/boot/kafka/autoconfigure/ConcurrentKafkaListenerContainerFactoryConfigurer.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to module/spring-boot-micrometer-metrics/src/main/java/org/springframework/boot/micrometer/metrics/autoconfigure/ssl/SslMeterBinder.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$ClockInstantRecipe Changes have been made to module/spring-boot-micrometer-metrics/src/test/java/org/springframework/boot/micrometer/metrics/autoconfigure/ssl/SslMeterBinderTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$UtcConstantRecipe Changes have been made to module/spring-boot-security/src/test/java/org/springframework/boot/security/autoconfigure/UserDetailsServiceAutoConfigurationTests.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityLambdaRecipe Changes have been made to module/spring-boot-sql/src/main/java/org/springframework/boot/sql/autoconfigure/init/OnDatabaseInitializationCondition.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$NegationRecipe Changes have been made to module/spring-boot-tomcat/src/test/java/org/springframework/boot/tomcat/servlet/TomcatServletWebServerFactoryTests.java by: org.openrewrite.staticanalysis.ReplaceLambdaWithMethodReference Changes have been made to module/spring-boot-webflux/src/test/java/org/springframework/boot/webflux/observation/autoconfigure/WebFluxObservationAutoConfigurationTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$DurationOfSecondsRecipe Changes have been made to module/spring-boot-zipkin/src/main/java/org/springframework/boot/zipkin/autoconfigure/ZipkinHttpClientSender.java by: org.openrewrite.staticanalysis.ReplaceLambdaWithMethodReference Changes have been made to test-support/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/resources/Resources.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$PathOfUriRecipe Changes have been made to test-support/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/system/OutputCapture.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityLambdaRecipe Please review and commit the results. Estimate time saved: 3h 6m BUILD SUCCESSFUL in 18m 9s ```
Signed-off-by: Vincent Potucek <[email protected]> ``` Changes have been made to build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/ClassPath.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$PathOfUriRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/io/InspectedContent.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$FilesCreateTempFileToFileRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/Cache.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/BuildpackReference.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$PathOfUriRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/configuration/DockerConfigurationMetadataTests.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$PathOfUriRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/configuration/ResolvedDockerHostTests.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$PathOfUriRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/EphemeralBuilderTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$UtcConstantRecipe tech.picnic.errorprone.refasterrules.TimeRulesRecipes$InstantAtOffsetRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/BuildRequestTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$UtcConstantRecipe Changes have been made to buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/ImageBuildpackTests.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$FilesCreateTempFileToFileRecipe Changes have been made to cli/spring-boot-cli/src/test/resources/commands/command.groovy by: org.openrewrite.java.format.RemoveTrailingWhitespace Changes have been made to cli/spring-boot-cli/src/test/resources/dir-sample/code/app.groovy by: org.openrewrite.java.format.RemoveTrailingWhitespace Changes have been made to cli/spring-boot-cli/src/test/resources/scripts/closure.groovy by: org.openrewrite.java.format.RemoveTrailingWhitespace Changes have been made to cli/spring-boot-cli/src/test/resources/scripts/command.groovy by: org.openrewrite.java.format.RemoveTrailingWhitespace Changes have been made to core/spring-boot/src/test/java/org/springframework/boot/info/SslInfoTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$UtcConstantRecipe Changes have been made to core/spring-boot/src/test/java/org/springframework/boot/logging/AbstractLoggingSystemTests.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$FilesCreateTempFileToFileRecipe Changes have been made to core/spring-boot/src/test/java/org/springframework/boot/convert/PeriodToStringConverterTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$ZeroPeriodRecipe Changes have been made to core/spring-boot/src/test/java/org/springframework/boot/convert/PeriodStyleTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$ZeroPeriodRecipe Changes have been made to core/spring-boot-test/src/main/java/org/springframework/boot/test/util/TestPropertyValues.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to core/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCapture.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityLambdaRecipe Changes have been made to loader/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/nested/NestedUrlConnection.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$UtcConstantRecipe Changes have been made to loader/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/SizeCalculatingEntryWriter.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$FilesCreateTempFileToFileRecipe Changes have been made to module/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/exchanges/HttpExchange.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$ClockInstantRecipe Changes have been made to module/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/management/HeapDumpWebEndpoint.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$FilesCreateTempFileToFileRecipe Changes have been made to module/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/InfoPropertiesInfoContributor.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to module/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoker/cache/CachingOperationInvoker.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/filewatch/ChangedFile.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to module/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/MainMethodTests.java by: org.openrewrite.staticanalysis.ReplaceLambdaWithMethodReference Changes have been made to module/spring-boot-jetty/src/main/java/org/springframework/boot/jetty/autoconfigure/JettyWebServerFactoryCustomizer.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to module/spring-boot-jetty/src/test/java/org/springframework/boot/jetty/autoconfigure/JettyWebServerFactoryCustomizerTests.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$FilesCreateTempFileToFileRecipe Changes have been made to module/spring-boot-kafka/src/main/java/org/springframework/boot/kafka/autoconfigure/ConcurrentKafkaListenerContainerFactoryConfigurer.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe Changes have been made to module/spring-boot-micrometer-metrics/src/main/java/org/springframework/boot/micrometer/metrics/autoconfigure/ssl/SslMeterBinder.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$ClockInstantRecipe Changes have been made to module/spring-boot-micrometer-metrics/src/test/java/org/springframework/boot/micrometer/metrics/autoconfigure/ssl/SslMeterBinderTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$UtcConstantRecipe Changes have been made to module/spring-boot-security/src/test/java/org/springframework/boot/security/autoconfigure/UserDetailsServiceAutoConfigurationTests.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityLambdaRecipe Changes have been made to module/spring-boot-sql/src/main/java/org/springframework/boot/sql/autoconfigure/init/OnDatabaseInitializationCondition.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityRecipe tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$NegationRecipe Changes have been made to module/spring-boot-tomcat/src/test/java/org/springframework/boot/tomcat/servlet/TomcatServletWebServerFactoryTests.java by: org.openrewrite.staticanalysis.ReplaceLambdaWithMethodReference Changes have been made to module/spring-boot-webflux/src/test/java/org/springframework/boot/webflux/observation/autoconfigure/WebFluxObservationAutoConfigurationTests.java by: tech.picnic.errorprone.refasterrules.TimeRulesRecipes tech.picnic.errorprone.refasterrules.TimeRulesRecipes$DurationOfSecondsRecipe Changes have been made to module/spring-boot-zipkin/src/main/java/org/springframework/boot/zipkin/autoconfigure/ZipkinHttpClientSender.java by: org.openrewrite.staticanalysis.ReplaceLambdaWithMethodReference Changes have been made to test-support/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/resources/Resources.java by: tech.picnic.errorprone.refasterrules.FileRulesRecipes tech.picnic.errorprone.refasterrules.FileRulesRecipes$PathOfUriRecipe Changes have been made to test-support/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/system/OutputCapture.java by: tech.picnic.errorprone.refasterrules.EqualityRulesRecipes tech.picnic.errorprone.refasterrules.EqualityRulesRecipes$EnumReferenceEqualityLambdaRecipe Please review and commit the results. Estimate time saved: 3h 6m BUILD SUCCESSFUL in 18m 9s ```
This comment was marked as resolved.
This comment was marked as resolved.
|
I don't feel particularly strongly about it, but I lean towards consistently using the static import in both main and test code. |
Signed-off-by: Vincent Potucek <[email protected]>
Signed-off-by: Vincent Potucek <[email protected]>
|
I don't have a strong opinion in either direction. |
|
Cool, thanks both. Let's go with the consistent option to use the static import then. |
See gh-48630 Signed-off-by: Johnny Lim <[email protected]>
Does this mean the rule? It reads like so because consistency can only be achieved via some gatekeeper, which is currently not the case, as discovered in: |
Add a rule to ensure we consistently use `assertThat` rather than `Assertions.assertThat`. See gh-48630
|
@Pankraz76 Good idea, I've added a rule in 92263e7 |
|
ah nice thx, yes check also capable of doing, so we having all parties happy. Got some gate keeper and no new tool. well done. |
This PR changes to use static imports for
Assertions.assertThat()consistently where possible.