misaya295 commented on code in PR #5602:
URL: https://github.com/apache/shenyu/pull/5602#discussion_r1720774454


##########
shenyu-admin/src/test/java/org/apache/shenyu/admin/mapper/ScalePolicyMapperTest.java:
##########
@@ -0,0 +1,64 @@
+/*
+ * 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 org.apache.shenyu.admin.mapper;
+
+import jakarta.annotation.Resource;
+import org.apache.shenyu.admin.AbstractSpringIntegrationTest;
+import org.apache.shenyu.admin.model.entity.ScalePolicyDO;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+/**
+ * Test cases for ScalePolicyMapper.
+ */
+public final class ScalePolicyMapperTest extends AbstractSpringIntegrationTest 
{
+
+    @Resource
+    private ScalePolicyMapper scalePolicyMapper;
+
+    @Test
+    void deleteByPrimaryKey() {

Review Comment:
   Please complete the unit test



##########
shenyu-admin/src/test/java/org/apache/shenyu/admin/mapper/ScalePolicyMapperTest.java:
##########
@@ -0,0 +1,64 @@
+/*
+ * 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 org.apache.shenyu.admin.mapper;
+
+import jakarta.annotation.Resource;
+import org.apache.shenyu.admin.AbstractSpringIntegrationTest;
+import org.apache.shenyu.admin.model.entity.ScalePolicyDO;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+/**
+ * Test cases for ScalePolicyMapper.
+ */
+public final class ScalePolicyMapperTest extends AbstractSpringIntegrationTest 
{
+
+    @Resource
+    private ScalePolicyMapper scalePolicyMapper;
+
+    @Test
+    void deleteByPrimaryKey() {
+    }
+
+    @Test
+    void insert() {
+    }
+
+    @Test
+    void insertSelective() {
+    }
+
+    @Test
+    void selectByPrimaryKey() {
+        ScalePolicyDO resultDO = scalePolicyMapper.selectByPrimaryKey("1");
+        // assertNotNull(resultDO);
+        assertEquals("1", resultDO.getId());
+        assertEquals(1, resultDO.getSort());
+        assertEquals(0, resultDO.getStatus());
+        assertEquals(10, resultDO.getNum());
+    }
+
+    @Test
+    void updateByPrimaryKeySelective() {
+    }

Review Comment:
   same question



##########
shenyu-admin/src/test/java/org/apache/shenyu/admin/mapper/ScalePolicyMapperTest.java:
##########
@@ -0,0 +1,64 @@
+/*
+ * 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 org.apache.shenyu.admin.mapper;
+
+import jakarta.annotation.Resource;
+import org.apache.shenyu.admin.AbstractSpringIntegrationTest;
+import org.apache.shenyu.admin.model.entity.ScalePolicyDO;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+/**
+ * Test cases for ScalePolicyMapper.
+ */
+public final class ScalePolicyMapperTest extends AbstractSpringIntegrationTest 
{
+
+    @Resource
+    private ScalePolicyMapper scalePolicyMapper;
+
+    @Test
+    void deleteByPrimaryKey() {
+    }
+
+    @Test
+    void insert() {
+    }
+
+    @Test
+    void insertSelective() {
+    }
+
+    @Test
+    void selectByPrimaryKey() {
+        ScalePolicyDO resultDO = scalePolicyMapper.selectByPrimaryKey("1");
+        // assertNotNull(resultDO);
+        assertEquals("1", resultDO.getId());
+        assertEquals(1, resultDO.getSort());
+        assertEquals(0, resultDO.getStatus());
+        assertEquals(10, resultDO.getNum());
+    }
+
+    @Test
+    void updateByPrimaryKeySelective() {
+    }
+
+    @Test
+    void updateByPrimaryKey() {
+    }

Review Comment:
   same question



##########
shenyu-admin/src/test/java/org/apache/shenyu/admin/mapper/ScalePolicyMapperTest.java:
##########
@@ -0,0 +1,64 @@
+/*
+ * 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 org.apache.shenyu.admin.mapper;
+
+import jakarta.annotation.Resource;
+import org.apache.shenyu.admin.AbstractSpringIntegrationTest;
+import org.apache.shenyu.admin.model.entity.ScalePolicyDO;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+/**
+ * Test cases for ScalePolicyMapper.
+ */
+public final class ScalePolicyMapperTest extends AbstractSpringIntegrationTest 
{
+
+    @Resource
+    private ScalePolicyMapper scalePolicyMapper;
+
+    @Test
+    void deleteByPrimaryKey() {
+    }
+
+    @Test
+    void insert() {
+    }
+
+    @Test
+    void insertSelective() {
+    }

Review Comment:
   same question



##########
shenyu-admin/pom.xml:
##########
@@ -352,6 +352,12 @@
             <artifactId>shenyu-admin-listener-zookeeper</artifactId>
             <version>${project.version}</version>
         </dependency>
+        <dependency>
+            <groupId>joda-time</groupId>
+            <artifactId>joda-time</artifactId>

Review Comment:
   remove useless dependencies



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to