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
Allow specifying no default port when building PropertiesEndpointGroup #993
Conversation
getClass().getClassLoader(), "server-list.properties", "serverA.hosts"); | ||
|
||
assertThat(endpointGroup.endpoints()).containsOnly(Endpoint.of("127.0.0.1:8080"), | ||
Endpoint.of("127.0.0.1:8081"), |
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.
nit: alignment :-)
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.
Oops. Fixed :-)
cd3a30f
to
0b9d663
Compare
0b9d663
to
5d758c4
Compare
Removed the 'defect' label because the exception message is actually correct. I made the exception is raised at earlier point for less confusion and correctness. |
Codecov Report
@@ Coverage Diff @@
## master #993 +/- ##
==========================================
- Coverage 72.27% 72.26% -0.02%
==========================================
Files 505 505
Lines 21957 21967 +10
Branches 2683 2684 +1
==========================================
+ Hits 15870 15874 +4
- Misses 4668 4677 +9
+ Partials 1419 1416 -3
Continue to review full report at Codecov.
|
5d758c4
to
5dfc6b3
Compare
Motivation: A user does not always want to specify the default port number when building a PropertiesEndpointGroup, especially for HTTP and HTTPS endpoints that run on their default ports. Modifications: - Add two overloaded factory methods that do not require 'defaultPort' - Fix off-by-one validation bug with 'defaultPort' - Overall clean-up on Javadoc and exception messages Result: - A user can build PropertiesEndpointGroup without defaultPort - Specifying 0 as defaultPort will trigger an exception at earlier point.
5dfc6b3
to
c967d01
Compare
Updated the test case to increase the test coverage. |
Thanks, reviewers! |
line#993) Motivation: A user does not always want to specify the default port number when building a PropertiesEndpointGroup, especially for HTTP and HTTPS endpoints that run on their default ports. Modifications: - Add two overloaded factory methods that do not require 'defaultPort' - Fix off-by-one validation bug with 'defaultPort' - Overall clean-up on Javadoc and exception messages Result: - A user can build PropertiesEndpointGroup without defaultPort - Specifying 0 as defaultPort will trigger an exception at earlier point.
Motivation:
A user does not always want to specify the default port number when
building a PropertiesEndpointGroup, especially for HTTP and HTTPS
endpoints that run on their default ports.
Modifications:
Result: