You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Stefan Zoerner <st...@labeo.de> on 2007/10/01 21:35:30 UTC

Re: NTP integraion test added (was Re: [ApacheDS] Mini-roadmap for protocol work)

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,
     Stefan