Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

nastra
Copy link
Contributor

@nastra nastra commented Apr 23, 2025

It appears that we have some tests that use Test as a suffix in the test class name, while all other modules use it in their prefix.

import software.amazon.awssdk.services.s3.S3Client;
import software.amazon.awssdk.services.s3.S3ClientBuilder;

public class HttpClientPropertiesTest {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was a duplicate and the exact same tests under TestHttpClientProperties already exist

Copy link

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label May 24, 2025
@nastra nastra added not-stale and removed stale labels May 26, 2025
…sses to use Test as prefix instead of suffix

It appears that we have some tests that use `Test` as a suffix in the test class name, while all other
modules use it in their prefix.
@nastra nastra force-pushed the rename-test-classes branch from 6122d01 to 665626f Compare June 26, 2025 07:50
@nastra
Copy link
Contributor Author

nastra commented Jun 26, 2025

@stevenzwu @pvary @RussellSpitzer @amogh-jahagirdar would be good to get your opinions on this minor renaming of test classes

@RussellSpitzer
Copy link
Member

This is pretty low on my list of annoying things about the tests, 👀 @ test template, but I have no problem if we want to standardize.

Copy link
Contributor

@amogh-jahagirdar amogh-jahagirdar left a comment

Choose a reason for hiding this comment

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

Thanks @nastra good to clean this up. Curious do you know off the top of your head if there's a way to lint/checkstyle this naming pattern (I can research myself just curious)? Reason I ask is, I can easily see myself forgetting about this and losing the convention later on.

@nastra nastra merged commit 404c805 into apache:main Jul 2, 2025
42 checks passed
@nastra nastra deleted the rename-test-classes branch July 2, 2025 06:46
@nastra
Copy link
Contributor Author

nastra commented Jul 2, 2025

Thanks @nastra good to clean this up. Curious do you know off the top of your head if there's a way to lint/checkstyle this naming pattern (I can research myself just curious)? Reason I ask is, I can easily see myself forgetting about this and losing the convention later on.

I've opened #13442 to address this. Maybe somebody in the community is interested in picking this up, because I couldn't produce sufficient results for that check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants