UserServiceImplTest.java 521 字节
Newer Older
Q
qinyingjie 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
package com.kwan.springbootkwan;

import com.kwan.springbootkwan.entity.User;
import com.kwan.springbootkwan.mapper.UserMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;



@SpringBootTest
public class UserServiceImplTest {

    @Autowired
    private UserMapper userService;

    @Test
    public void queryAll() {
        User user = userService.selectById(1);
        System.out.println(user);
    }
}