commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (NET-527) Add SimpleNTPServer as example and for testing
Date Wed, 05 Mar 2014 20:12:49 GMT

     [ https://issues.apache.org/jira/browse/NET-527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb resolved NET-527.
----------------------

       Resolution: Fixed
    Fix Version/s: 3.4

Thanks very much!

I'd overlooked that the server  was under the examples package rather than in the main code;
I think it's fine there so I left it alone.

URL: http://svn.apache.org/r1574646
Log:
NET-527 Add SimpleNTPServer as example and for testing

Added:
    commons/proper/net/trunk/src/main/java/examples/ntp/SimpleNTPServer.java   (with props)
    commons/proper/net/trunk/src/test/java/org/apache/commons/net/ntp/TestNtpClient.java 
 (with props)
Modified:
    commons/proper/net/trunk/src/changes/changes.xml

> Add SimpleNTPServer as example and for testing
> ----------------------------------------------
>
>                 Key: NET-527
>                 URL: https://issues.apache.org/jira/browse/NET-527
>             Project: Commons Net
>          Issue Type: Improvement
>    Affects Versions: 3.3
>            Reporter: jason mathews
>              Labels: ntp
>             Fix For: 3.4
>
>         Attachments: ntpServer.patch.txt
>
>
> I've implemented a minimal NTP server that doesn't actually adjust the time but responds
to NTP datagram requests with info filled out using the current clock time to be be used for
debugging and testing. At minimum it can be used as a test harness to test the NTP client
implementations such as the NtpClient class. Added appropriate junit test.
> The SimpleNTPServer can run from any local port to prevent from interfering with the
actual NTP service on port 123.
> The SimpleNTPServer class complements the existing NtpClient class.
> Implementation and test provided in attached patch file.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message