diff --git a/hutool-core/src/test/java/org/dromara/hutool/core/util/ZipUtilTest.java b/hutool-core/src/test/java/org/dromara/hutool/core/compress/ZipUtilTest.java similarity index 98% rename from hutool-core/src/test/java/org/dromara/hutool/core/util/ZipUtilTest.java rename to hutool-core/src/test/java/org/dromara/hutool/core/compress/ZipUtilTest.java index 57dd0d136..d2bce812e 100644 --- a/hutool-core/src/test/java/org/dromara/hutool/core/util/ZipUtilTest.java +++ b/hutool-core/src/test/java/org/dromara/hutool/core/compress/ZipUtilTest.java @@ -14,15 +14,15 @@ * limitations under the License. */ -package org.dromara.hutool.core.util; +package org.dromara.hutool.core.compress; -import org.dromara.hutool.core.compress.ZipReader; -import org.dromara.hutool.core.compress.ZipUtil; import org.dromara.hutool.core.io.IORuntimeException; import org.dromara.hutool.core.io.file.FileUtil; import org.dromara.hutool.core.io.file.PathUtil; import org.dromara.hutool.core.lang.Console; import org.dromara.hutool.core.text.StrUtil; +import org.dromara.hutool.core.util.ByteUtil; +import org.dromara.hutool.core.util.CharsetUtil; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/hutool-core/src/test/java/org/dromara/hutool/core/util/ModifierUtilTest.java b/hutool-core/src/test/java/org/dromara/hutool/core/reflect/ModifierUtilTest.java similarity index 94% rename from hutool-core/src/test/java/org/dromara/hutool/core/util/ModifierUtilTest.java rename to hutool-core/src/test/java/org/dromara/hutool/core/reflect/ModifierUtilTest.java index 34a10b180..598c0c3d6 100644 --- a/hutool-core/src/test/java/org/dromara/hutool/core/util/ModifierUtilTest.java +++ b/hutool-core/src/test/java/org/dromara/hutool/core/reflect/ModifierUtilTest.java @@ -14,11 +14,8 @@ * limitations under the License. */ -package org.dromara.hutool.core.util; +package org.dromara.hutool.core.reflect; -import org.dromara.hutool.core.reflect.FieldUtil; -import org.dromara.hutool.core.reflect.ModifierType; -import org.dromara.hutool.core.reflect.ModifierUtil; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledForJreRange; diff --git a/hutool-core/src/test/java/org/dromara/hutool/core/util/ReUtilTest.java b/hutool-core/src/test/java/org/dromara/hutool/core/regex/ReUtilTest.java similarity index 98% rename from hutool-core/src/test/java/org/dromara/hutool/core/util/ReUtilTest.java rename to hutool-core/src/test/java/org/dromara/hutool/core/regex/ReUtilTest.java index 2d964dd89..3992a5a45 100644 --- a/hutool-core/src/test/java/org/dromara/hutool/core/util/ReUtilTest.java +++ b/hutool-core/src/test/java/org/dromara/hutool/core/regex/ReUtilTest.java @@ -14,12 +14,10 @@ * limitations under the License. */ -package org.dromara.hutool.core.util; +package org.dromara.hutool.core.regex; import org.dromara.hutool.core.collection.ListUtil; import org.dromara.hutool.core.lang.Console; -import org.dromara.hutool.core.regex.PatternPool; -import org.dromara.hutool.core.regex.ReUtil; import org.dromara.hutool.core.text.StrUtil; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/hutool-core/src/test/java/org/dromara/hutool/core/util/SystemUtilTest.java b/hutool-core/src/test/java/org/dromara/hutool/core/util/SystemUtilTest.java new file mode 100644 index 000000000..cba4f96c8 --- /dev/null +++ b/hutool-core/src/test/java/org/dromara/hutool/core/util/SystemUtilTest.java @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.dromara.hutool.core.util; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +public class SystemUtilTest { + @Test + void getSystemPropertiesTest() { + final String s = SystemUtil.get("path"); + Assertions.assertNotNull(s); + } +} diff --git a/hutool-extra/src/test/java/org/dromara/hutool/extra/management/SystemUtilTest.java b/hutool-extra/src/test/java/org/dromara/hutool/extra/management/ManagementUtilTest.java similarity index 98% rename from hutool-extra/src/test/java/org/dromara/hutool/extra/management/SystemUtilTest.java rename to hutool-extra/src/test/java/org/dromara/hutool/extra/management/ManagementUtilTest.java index 3fdb0aa51..7bf32e999 100644 --- a/hutool-extra/src/test/java/org/dromara/hutool/extra/management/SystemUtilTest.java +++ b/hutool-extra/src/test/java/org/dromara/hutool/extra/management/ManagementUtilTest.java @@ -23,7 +23,7 @@ import org.junit.jupiter.api.Test; import java.io.File; -public class SystemUtilTest { +public class ManagementUtilTest { @Test @Disabled