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); } } }