单元测试支持Junit5

This commit is contained in:
macro
2022-06-25 15:37:33 +08:00
parent b925885494
commit 4fc1755441
5 changed files with 11 additions and 22 deletions

View File

@@ -2,14 +2,11 @@ package com.macro.mall.demo;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.macro.mall.model.PmsProduct;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class MallDemoApplicationTests {
private Logger logger = LoggerFactory.getLogger(MallDemoApplicationTests.class);