From eba3314826d53ff0f7e5679d185baaff84e50354 Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期四, 04 十二月 2025 10:07:56 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override
---
north-glass-erp/src/test/java/com/example/erp/ErpApplicationTests.java | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/src/test/java/com/example/erp/ErpApplicationTests.java b/north-glass-erp/src/test/java/com/example/erp/ErpApplicationTests.java
new file mode 100644
index 0000000..f85faad
--- /dev/null
+++ b/north-glass-erp/src/test/java/com/example/erp/ErpApplicationTests.java
@@ -0,0 +1,28 @@
+package com.example.erp;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.data.redis.core.StringRedisTemplate;
+
+import static org.apache.tomcat.jni.Lock.trylock;
+
+@SpringBootTest
+class ErpApplicationTests {
+ @Autowired
+ private StringRedisTemplate stringRedisTemplate;
+
+ @Test
+ void contextLoads() {
+ String.valueOf("1.0").replaceAll("\\.0*$|(\\.\\d*?)0+$", "$1");
+ }
+
+ @Test
+ void test() {
+ int x =100;
+ System.out.println(6.5+x/8);
+// stringRedisTemplate.opsForValue().set("test", "test");
+// Object test = stringRedisTemplate.opsForValue().get("test");
+ }
+
+}
--
Gitblit v1.8.0