-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
base: main
Are you sure you want to change the base?
Conversation
|
||
public class TestUtils { | ||
static final String DEFAULT_SERVER_HOST = "http://localhost:8080/mail"; | ||
static final String API_PATH = "/home.jsf"; |
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.
I think this variable could be renamed to something more descriptive, for example HOME_PATH
or MAINPAGE_PATH
.
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.
refactored the code changes.
if (serverHost == null) { | ||
serverHost = DEFAULT_SERVER_HOST; | ||
} | ||
HttpGet httpGet = new HttpGet(getServerHost()); |
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.
What the purpose of this object? I don't see it being used elsewhere.
With the changes on this PR, I don't see the point of keeping |
Now I noticed it is pending remove an unused constant
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.
private static final String DEFAULT_SERVER_HOST = "http://localhost:8080/mail";
should be also removed from MailTestCaseIT
Issue: https://issues.redhat.com/browse/WFLY-19450
Linked Issue: https://issues.redhat.com/browse/WFLY-19075