You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/05/28 12:55:19 UTC

(commons-net) branch master updated (5403a868 -> f20c95fb)

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


    from 5403a868 Add teste
     new 2cc03d09 Add test
     new f20c95fb Javadoc

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/test/java/org/apache/commons/net/time/TimeTCPClientTest.java | 8 ++++----
 src/test/java/org/apache/commons/net/time/TimeUDPClientTest.java | 9 ++++++++-
 2 files changed, 12 insertions(+), 5 deletions(-)


(commons-net) 01/02: Add test

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git

commit 2cc03d0946da9b224e7c2a1b696816b1c35fff3b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue May 28 08:53:42 2024 -0400

    Add test
---
 src/test/java/org/apache/commons/net/time/TimeUDPClientTest.java | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/net/time/TimeUDPClientTest.java b/src/test/java/org/apache/commons/net/time/TimeUDPClientTest.java
index 681f54a8..b41e8b47 100644
--- a/src/test/java/org/apache/commons/net/time/TimeUDPClientTest.java
+++ b/src/test/java/org/apache/commons/net/time/TimeUDPClientTest.java
@@ -26,7 +26,14 @@ import org.junit.jupiter.api.Test;
 public class TimeUDPClientTest {
 
     @Test
-    public void test() {
+    public void testConstructor() {
+        try (TimeUDPClient client = new TimeUDPClient()) {
+            // empty
+        }
+    }
+
+    @Test
+    public void testToTime() {
         final byte[] timeData = new byte[4];
         assertEquals(0, TimeUDPClient.toTime(timeData));
     }


(commons-net) 02/02: Javadoc

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git

commit f20c95fbee5b821105ef7353fae8db7ef9834800
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue May 28 08:55:15 2024 -0400

    Javadoc
---
 src/test/java/org/apache/commons/net/time/TimeTCPClientTest.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/commons/net/time/TimeTCPClientTest.java b/src/test/java/org/apache/commons/net/time/TimeTCPClientTest.java
index a9815fbc..fde2b05f 100644
--- a/src/test/java/org/apache/commons/net/time/TimeTCPClientTest.java
+++ b/src/test/java/org/apache/commons/net/time/TimeTCPClientTest.java
@@ -50,8 +50,8 @@ public class TimeTCPClientTest extends TestCase {
         server1.start();
     }
 
-    /*
-     * tests the times retrieved via the Time protocol implementation.
+    /**
+     * Tests the times retrieved via the Time protocol implementation.
      */
     public void testCompareTimes() throws Exception {
         openConnections();
@@ -97,8 +97,8 @@ public class TimeTCPClientTest extends TestCase {
         assertTrue(Math.abs(time2 - clientTime2) < 5000);
     }
 
-    /*
-     * tests the constant basetime used by TimeClient against tha computed from Calendar class.
+    /**
+     * Tests the constant basetime used by TimeClient against tha computed from Calendar class.
      */
     public void testInitial() {
         final TimeZone utcZone = TimeZone.getTimeZone("UTC");