Skip to content
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

[WFLY-19450] mail Quickstarts should have a root webpage similar to helloworld #937

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sudeshnas93
Copy link
Contributor


public class TestUtils {
static final String DEFAULT_SERVER_HOST = "http://localhost:8080/mail";
static final String API_PATH = "/home.jsf";
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this variable could be renamed to something more descriptive, for example HOME_PATH or MAINPAGE_PATH.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

refactored the code changes.

if (serverHost == null) {
serverHost = DEFAULT_SERVER_HOST;
}
HttpGet httpGet = new HttpGet(getServerHost());
Copy link
Contributor

Choose a reason for hiding this comment

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

What the purpose of this object? I don't see it being used elsewhere.

@iweiss
Copy link
Contributor

iweiss commented Jun 25, 2024

With the changes on this PR, I don't see the point of keeping private static final String DEFAULT_SERVER_HOST = "http://localhost:8080/mail";

yersan
yersan previously approved these changes Jul 4, 2024
@yersan yersan dismissed their stale review July 4, 2024 10:51

Now I noticed it is pending remove an unused constant

Copy link
Contributor

@yersan yersan left a comment

Choose a reason for hiding this comment

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

private static final String DEFAULT_SERVER_HOST = "http://localhost:8080/mail"; should be also removed from MailTestCaseIT

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.

3 participants