删除无用的测试类。pom文件增加编译打包的配置

main
fzhang5 2025-07-13 19:49:22 +08:00
parent 74e81fe787
commit 4c7f372ec9
1 changed files with 0 additions and 32 deletions

View File

@ -1,32 +0,0 @@
package com.rabbiter.em.mapper;
import com.rabbiter.em.entity.Cart;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
import static org.junit.Assert.*;
@RunWith(SpringRunner.class)
@SpringBootTest
public class CartMapperTest {
@Autowired
private CartMapper cartMapper;
@Test
public void selectByUserId() {
List<Map<String, Object>> list = cartMapper.selectByUserId(2L);
System.out.println(list);
}
@Test
public void selectAll() {
cartMapper.selectList(null).forEach(System.out::println);
}
}