directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Zoerner <>
Subject Re: NTP integraion test added (was Re: [ApacheDS] Mini-roadmap for protocol work)
Date Mon, 01 Oct 2007 19:35:30 GMT
Hi Enrique!

Enrique Rodriguez wrote:
> This is a really nice test.  In particular, it fills a gap between
> unit tests and the integration tests in server-unit, providing full
> server tests, including codecs.  The tests I added for Kerberos tested
> at the IoHandler level and thus did not test the codecs.  I will start
> to use something more like what Stefan worked out for the other
> protocols.

Thanks for the feedback.

> One issue, because this came up earlier this summer, is that when you
> get the loopback address, the best practice is to use 'null' as the
> hostname.  'null' will explicitly return the loopback address and
> avoid any issues with misconfigured hosts files that could cause the
> tests to fail.  I've tested this on Sun and IBM and it should work
> given a read of Harmony source.

I have adjusted as you suggested:

InetAddress localhost = InetAddress.getByName( null );

And it works at least in my environment within Maven and Eclipse 3.2 
with Sun JDK. Thanks for the hint,

View raw message