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

Explore support for custom IP address resolution #605

Open
nipafx opened this issue Mar 8, 2022 · 0 comments
Open

Explore support for custom IP address resolution #605

nipafx opened this issue Mar 8, 2022 · 0 comments

Comments

@nipafx
Copy link
Member

nipafx commented Mar 8, 2022

JEP 418, shipped with JDK 18, allows customizing IP address resolution via an SPI. We should explore whether tests may benefit from temporarily redirecting host names to customizable IPs, e.g:

@Test
@Redirect(host = "example.org", to = "127.0.0.1")
void redirectedTest() {
	// ...
}

Hard-coding IP addresses into test code is probably not a good idea, so there's probably need for more maintainable options, maybe an external configuration file?

Explore!

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

No branches or pull requests

1 participant