From 9d109c3d7ed166fd8d272ac35d08e4fb8e74f8e5 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 19 Feb 2024 16:48:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=94=9F=E6=88=90=E7=9A=84=E9=9A=8F=E6=9C=BA=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E5=8C=85=E5=90=AB=E7=89=B9=E6=AE=8A=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E5=AF=BC=E8=87=B4action=E4=B8=8D=E8=83=BD=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/system/base/param/MaxParamGenerator.java | 2 +- .../io/metersphere/system/base/param/MinParamGenerator.java | 2 +- .../io/metersphere/system/base/param/SizeParamGenerator.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/services/system-setting/src/test/java/io/metersphere/system/base/param/MaxParamGenerator.java b/backend/services/system-setting/src/test/java/io/metersphere/system/base/param/MaxParamGenerator.java index f9e6ad9595..69250a0118 100644 --- a/backend/services/system-setting/src/test/java/io/metersphere/system/base/param/MaxParamGenerator.java +++ b/backend/services/system-setting/src/test/java/io/metersphere/system/base/param/MaxParamGenerator.java @@ -1,7 +1,7 @@ package io.metersphere.system.base.param; import jakarta.validation.constraints.Max; -import org.testcontainers.shaded.org.apache.commons.lang3.RandomStringUtils; +import org.apache.commons.lang3.RandomStringUtils; import java.lang.annotation.Annotation; import java.lang.reflect.Field; diff --git a/backend/services/system-setting/src/test/java/io/metersphere/system/base/param/MinParamGenerator.java b/backend/services/system-setting/src/test/java/io/metersphere/system/base/param/MinParamGenerator.java index 8cabc849fb..4b4d43eb99 100644 --- a/backend/services/system-setting/src/test/java/io/metersphere/system/base/param/MinParamGenerator.java +++ b/backend/services/system-setting/src/test/java/io/metersphere/system/base/param/MinParamGenerator.java @@ -1,7 +1,7 @@ package io.metersphere.system.base.param; import jakarta.validation.constraints.Min; -import org.testcontainers.shaded.org.apache.commons.lang3.RandomStringUtils; +import org.apache.commons.lang3.RandomStringUtils; import java.lang.annotation.Annotation; import java.lang.reflect.Field; diff --git a/backend/services/system-setting/src/test/java/io/metersphere/system/base/param/SizeParamGenerator.java b/backend/services/system-setting/src/test/java/io/metersphere/system/base/param/SizeParamGenerator.java index c666de62b9..e1b0a945b8 100644 --- a/backend/services/system-setting/src/test/java/io/metersphere/system/base/param/SizeParamGenerator.java +++ b/backend/services/system-setting/src/test/java/io/metersphere/system/base/param/SizeParamGenerator.java @@ -1,7 +1,7 @@ package io.metersphere.system.base.param; import jakarta.validation.constraints.Size; -import org.testcontainers.shaded.org.apache.commons.lang3.RandomStringUtils; +import org.apache.commons.lang3.RandomStringUtils; import java.lang.annotation.Annotation; import java.lang.reflect.Field; @@ -22,7 +22,7 @@ public class SizeParamGenerator extends ParamGenerator { return max + 1; } else { // todo 做缓存优化 - return RandomStringUtils.random(max + 1); + return RandomStringUtils.randomAlphanumeric(max + 1); } } }