From e81e1c7ef75767658657c79c563842d2ab24127e Mon Sep 17 00:00:00 2001 From: Gdk666 <763366136@qq.com> Date: Wed, 14 Sep 2022 17:11:05 +0800 Subject: [PATCH] Add unit test cases (#696) * add ReflectUtilTest test case (#641) * Add unit test cases * Add unit test cases --- .../main/test/java/cn/hippo4j/config/toolkit/BeanUtilTest.java | 1 + .../main/test/java/cn/hippo4j/config/toolkit/ClassUtilTest.java | 1 + .../test/java/cn/hippo4j/config/toolkit/ConfigExecutorTest.java | 1 + .../main/test/java/cn/hippo4j/config/toolkit/EnvUtilTest.java | 1 + .../main/test/java/cn/hippo4j/config/toolkit/MapUtilTest.java | 1 + .../test/java/cn/hippo4j/config/toolkit/Md5ConfigUtilTest.java | 1 + .../test/java/cn/hippo4j/config/toolkit/RequestUtilTest.java | 1 + .../java/cn/hippo4j/config/toolkit/SimpleReadWriteLockTest.java | 1 + 8 files changed, 8 insertions(+) create mode 100644 hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/BeanUtilTest.java create mode 100644 hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/ClassUtilTest.java create mode 100644 hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/ConfigExecutorTest.java create mode 100644 hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/EnvUtilTest.java create mode 100644 hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/MapUtilTest.java create mode 100644 hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/Md5ConfigUtilTest.java create mode 100644 hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/RequestUtilTest.java create mode 100644 hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/SimpleReadWriteLockTest.java diff --git a/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/BeanUtilTest.java b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/BeanUtilTest.java new file mode 100644 index 00000000..7ad6ec71 --- /dev/null +++ b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/BeanUtilTest.java @@ -0,0 +1 @@ +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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 cn.hippo4j.config.toolkit; /** * BeanUtil Test */ public class BeanUtilTest { } \ No newline at end of file diff --git a/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/ClassUtilTest.java b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/ClassUtilTest.java new file mode 100644 index 00000000..f01df45a --- /dev/null +++ b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/ClassUtilTest.java @@ -0,0 +1 @@ +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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 cn.hippo4j.config.toolkit; /** * ClassUtil Test */ public class ClassUtilTest { } \ No newline at end of file diff --git a/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/ConfigExecutorTest.java b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/ConfigExecutorTest.java new file mode 100644 index 00000000..5af1a740 --- /dev/null +++ b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/ConfigExecutorTest.java @@ -0,0 +1 @@ +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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 cn.hippo4j.config.toolkit; /** * ConfigExecutor Test */ public class ConfigExecutorTest { } \ No newline at end of file diff --git a/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/EnvUtilTest.java b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/EnvUtilTest.java new file mode 100644 index 00000000..4ce850bf --- /dev/null +++ b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/EnvUtilTest.java @@ -0,0 +1 @@ +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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 cn.hippo4j.config.toolkit; /** * EnvUtil Test */ public class EnvUtilTest { } \ No newline at end of file diff --git a/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/MapUtilTest.java b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/MapUtilTest.java new file mode 100644 index 00000000..96a7b55a --- /dev/null +++ b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/MapUtilTest.java @@ -0,0 +1 @@ +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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 cn.hippo4j.config.toolkit; /** * MapUtil Test */ public class MapUtilTest { } \ No newline at end of file diff --git a/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/Md5ConfigUtilTest.java b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/Md5ConfigUtilTest.java new file mode 100644 index 00000000..33834a0c --- /dev/null +++ b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/Md5ConfigUtilTest.java @@ -0,0 +1 @@ +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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 cn.hippo4j.config.toolkit; /** * Md5ConfigUtil Test */ public class Md5ConfigUtilTest { } \ No newline at end of file diff --git a/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/RequestUtilTest.java b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/RequestUtilTest.java new file mode 100644 index 00000000..d820364a --- /dev/null +++ b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/RequestUtilTest.java @@ -0,0 +1 @@ +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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 cn.hippo4j.config.toolkit; /** * RequestUtil Test */ public class RequestUtilTest { } \ No newline at end of file diff --git a/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/SimpleReadWriteLockTest.java b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/SimpleReadWriteLockTest.java new file mode 100644 index 00000000..65f96284 --- /dev/null +++ b/hippo4j-config/src/main/test/java/cn/hippo4j/config/toolkit/SimpleReadWriteLockTest.java @@ -0,0 +1 @@ +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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 cn.hippo4j.config.toolkit; /** * SimpleReadWriteLock Test */ public class SimpleReadWriteLockTest { } \ No newline at end of file