Commit fe9ecee4 authored by wdy's avatar wdy

test

parent e8d0e9f4
...@@ -7,6 +7,8 @@ import org.junit.jupiter.api.Test; ...@@ -7,6 +7,8 @@ import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import java.io.IOException;
@SpringBootTest @SpringBootTest
public class ReviewSceneChangeTaskTest { public class ReviewSceneChangeTaskTest {
...@@ -17,7 +19,7 @@ public class ReviewSceneChangeTaskTest { ...@@ -17,7 +19,7 @@ public class ReviewSceneChangeTaskTest {
* 创建一个新增场景的任务 * 创建一个新增场景的任务
*/ */
@Test @Test
public void createTest_add() { public void createTest_add() throws IOException {
ReviewSceneChangeTask reviewSceneChangeTask = new ReviewSceneChangeTask() ReviewSceneChangeTask reviewSceneChangeTask = new ReviewSceneChangeTask()
.setTaskNo(SnowflakeUtil.generate().toString()) .setTaskNo(SnowflakeUtil.generate().toString())
...@@ -40,7 +42,7 @@ public class ReviewSceneChangeTaskTest { ...@@ -40,7 +42,7 @@ public class ReviewSceneChangeTaskTest {
* 创建一个删除场景的任务 * 创建一个删除场景的任务
*/ */
@Test @Test
public void createTest_delete() { public void createTest_delete() throws IOException {
ReviewSceneChangeTask reviewSceneChangeTask = new ReviewSceneChangeTask() ReviewSceneChangeTask reviewSceneChangeTask = new ReviewSceneChangeTask()
.setTaskNo(SnowflakeUtil.generate().toString()) .setTaskNo(SnowflakeUtil.generate().toString())
...@@ -64,7 +66,7 @@ public class ReviewSceneChangeTaskTest { ...@@ -64,7 +66,7 @@ public class ReviewSceneChangeTaskTest {
* 创建一个修改场景的任务 * 创建一个修改场景的任务
*/ */
@Test @Test
public void createTest_update() { public void createTest_update() throws IOException {
ReviewSceneChangeTask reviewSceneChangeTask = new ReviewSceneChangeTask() ReviewSceneChangeTask reviewSceneChangeTask = new ReviewSceneChangeTask()
.setTaskNo(SnowflakeUtil.generate().toString()) .setTaskNo(SnowflakeUtil.generate().toString())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment