From efdb99f8cecc4afb592afad79c761081d5d5cf22 Mon Sep 17 00:00:00 2001
From: lee <4766465@qq.com>
Date: Wed, 18 Dec 2024 13:27:00 +0800
Subject: [PATCH] init

---
 system-test/src/main/java/com/yami/shop/systemtest/base/BaseTestHandler.java |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/system-test/src/main/java/com/yami/shop/systemtest/base/BaseTestHandler.java b/system-test/src/main/java/com/yami/shop/systemtest/base/BaseTestHandler.java
new file mode 100644
index 0000000..cb46973
--- /dev/null
+++ b/system-test/src/main/java/com/yami/shop/systemtest/base/BaseTestHandler.java
@@ -0,0 +1,25 @@
+package com.yami.shop.systemtest.base;
+
+import cn.hutool.core.collection.CollectionUtil;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class BaseTestHandler {
+
+    private final List<BaseTest> baseTestList = new ArrayList<>();
+
+    public void add(BaseTest baseTest) {
+        baseTestList.add(baseTest);
+    }
+    public void doTest() {
+        if (CollectionUtil.isEmpty(baseTestList)) {
+            return;
+        }
+        for (BaseTest test : baseTestList) {
+            System.out.println("----------testing: " + test.getClass().getSimpleName()+ "----------");
+            test.doTest();
+
+        }
+    }
+}

--
Gitblit v1.9.3