package com.example.lxw;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.example.lxw.mapper.User_InfMapper;
|
import com.example.lxw.pojo.User_inf;
|
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 java.util.List;
|
|
/**
|
* @author lxw
|
* @create 2021-04-14 10:20
|
*/
|
@RunWith(SpringRunner.class)
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
public class MpperTest {
|
@Autowired
|
private User_InfMapper user_infMapper;
|
|
@Test
|
public void searchAll(){
|
List<User_inf> list= user_infMapper.selectList(new QueryWrapper<>());
|
list.forEach(uinf-> System.out.println(uinf.toString()));
|
}
|
@Test
|
public void showBean(){
|
|
}
|
}
|