From 34981c30a78e8bbd7791131059a9210f9928b62c Mon Sep 17 00:00:00 2001
From: 刘光辉 <347230014@qq.com>
Date: 星期四, 17 九月 2026 09:24:09 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into master

---
 jnpf-dms/jnpf-dms-biz/src/test/java/jnpf/dmsPermission/DmsCursorCodecTest.java |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/jnpf-dms/jnpf-dms-biz/src/test/java/jnpf/dmsPermission/DmsCursorCodecTest.java b/jnpf-dms/jnpf-dms-biz/src/test/java/jnpf/dmsPermission/DmsCursorCodecTest.java
new file mode 100644
index 0000000..d1b3339
--- /dev/null
+++ b/jnpf-dms/jnpf-dms-biz/src/test/java/jnpf/dmsPermission/DmsCursorCodecTest.java
@@ -0,0 +1,24 @@
+package jnpf.dmsPermission;
+
+import org.junit.jupiter.api.Test;
+
+import java.sql.Timestamp;
+import java.time.Instant;
+import java.util.UUID;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+class DmsCursorCodecTest {
+
+    @Test
+    void preservesTimestampNanosecondsAndUuid() {
+        DmsCursorCodec codec = new DmsCursorCodec();
+        Timestamp time = Timestamp.from(Instant.parse("2026-08-15T10:20:30.123456Z"));
+        UUID id = UUID.fromString("0198ad74-1c00-7000-8000-000000000001");
+
+        DmsCursorCodec.Cursor decoded = codec.decode(codec.encode(time, id));
+
+        assertEquals(time.toInstant(), decoded.getTime().toInstant());
+        assertEquals(id, decoded.getId());
+    }
+}

--
Gitblit v1.8.0