|
|
@ -6,16 +6,13 @@ import org.jeecg.modules.demo.test.entity.JeecgDemo;
|
|
|
|
import org.jeecg.modules.demo.test.mapper.JeecgDemoMapper;
|
|
|
|
import org.jeecg.modules.demo.test.mapper.JeecgDemoMapper;
|
|
|
|
import org.jeecg.modules.demo.test.service.IJeecgDemoService;
|
|
|
|
import org.jeecg.modules.demo.test.service.IJeecgDemoService;
|
|
|
|
import org.jeecg.modules.system.service.ISysDataLogService;
|
|
|
|
import org.jeecg.modules.system.service.ISysDataLogService;
|
|
|
|
import org.junit.Assert;
|
|
|
|
import org.junit.jupiter.api.Assertions;
|
|
|
|
import org.junit.Test;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
import org.junit.runner.RunWith;
|
|
|
|
|
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
@RunWith(SpringRunner.class)
|
|
|
|
|
|
|
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = JeecgSystemApplication.class)
|
|
|
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = JeecgSystemApplication.class)
|
|
|
|
public class SampleTest {
|
|
|
|
public class SampleTest {
|
|
|
|
|
|
|
|
|
|
|
@ -32,7 +29,7 @@ public class SampleTest {
|
|
|
|
public void testSelect() {
|
|
|
|
public void testSelect() {
|
|
|
|
System.out.println(("----- selectAll method test ------"));
|
|
|
|
System.out.println(("----- selectAll method test ------"));
|
|
|
|
List<JeecgDemo> userList = jeecgDemoMapper.selectList(null);
|
|
|
|
List<JeecgDemo> userList = jeecgDemoMapper.selectList(null);
|
|
|
|
Assert.assertEquals(5, userList.size());
|
|
|
|
Assertions.assertEquals(5, userList.size());
|
|
|
|
userList.forEach(System.out::println);
|
|
|
|
userList.forEach(System.out::println);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|