Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

How to write an integration test for a customized dns lookup provider chain

License

Notifications You must be signed in to change notification settings

schuch/dnslookup-integration-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnslookup-integration-test

Shows how to write a junit integration test for a customized dns lookup configuration

Uses https://github.com/resteasy/Resteasy/tree/master/eagledns to create a java based dns server for testing. How to customize dns lookup is documented here: https://docs.oracle.com/javase/8/docs/technotes/guides/net/properties.html

Note that the test only succeeds when executed during the maven build. When running in an IDE (e.g. Eclipse), setting the system properties @BeforeClass is too late, because InetAddress has already instantiated its dns providers.

About

How to write an integration test for a customized dns lookup provider chain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages