TalkonlinewebApplicationTests.java 832 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
package com.lyms.talkonlineweb;

import com.lyms.talkonlineweb.mapper.LymsUserMapper;
import com.lyms.talkonlineweb.service.LymsUserService;
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
class TalkonlinewebApplicationTests {

@Autowired
private LymsUserMapper lymsUserMapper;

@Autowired
private LymsUserService lymsUserService;

@Test
void testSlt() {
List uLst=lymsUserMapper.selectList(null);
System.out.println(uLst.size());
uLst.forEach(e->{
System.out.println(e);
});
System.out.println("############################");
lymsUserService.list().forEach(e-> System.out.println(e));
}

}