24 lines
607 B
Java
24 lines
607 B
Java
package com.guwan;
|
|
|
|
import com.guwan.controller.login.User;
|
|
import com.guwan.controller.login.UserMapper;
|
|
import org.junit.jupiter.api.Test;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
import java.util.List;
|
|
|
|
@SpringBootTest
|
|
public class SampleTest {
|
|
|
|
@Autowired
|
|
private UserMapper userMapper;
|
|
|
|
@Test
|
|
public void testSelect() {
|
|
System.out.println(("----- selectAll method test ------"));
|
|
List<User> userList = userMapper.selectList(null);
|
|
userList.forEach(System.out::println);
|
|
}
|
|
|
|
} |