Skip to content

introduce lombok usage in integrationTest to decrease boilerplate #107

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

NathanQingyangXu
Copy link
Contributor

@NathanQingyangXu NathanQingyangXu commented Jun 23, 2025

Forsee a prospect that lots of boilerplate code is required in future integration testing cases. Seems lombok could be exploited to decrease boilerplate so we could focus more on business logic. Only integration testing module is touched.

@NathanQingyangXu NathanQingyangXu marked this pull request as ready for review June 23, 2025 22:51
build.gradle.kts Outdated
@@ -110,7 +114,7 @@ spotless {
tasks.check { dependsOn(tasks.spotlessApply) }

tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.addAll(listOf("-Xlint:all", "-Werror"))
options.compilerArgs.addAll(listOf("-Xlint:all,-serial,-processing", "-Werror"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not at the moment against using Lombok in test code, but I don't like this -serial,-processing change: we should not disable those javac lints in the production code unless there is a good reason for that, and using Lombok in test code is not a good reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think -Xlint:all -Werror should ONLY be applied to production code, not testing code. I made some minor change to achieve that. Now testing code has more freedom in terms of javac warning, just like we have disabled errorprone for it previously.

@NathanQingyangXu NathanQingyangXu marked this pull request as draft July 4, 2025 13:58
@NathanQingyangXu NathanQingyangXu force-pushed the introduce-lombok-to-test branch from 6778a24 to 6ffc4a5 Compare July 4, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants