package com.xcong.farmer.cms; 
 | 
  
 | 
import com.xcong.farmer.cms.modules.test.dao.TestUserDao; 
 | 
import com.xcong.farmer.cms.modules.test.entity.TestUserEntity; 
 | 
import org.junit.jupiter.api.Test; 
 | 
import org.springframework.boot.test.context.SpringBootTest; 
 | 
  
 | 
import javax.annotation.Resource; 
 | 
import java.util.Date; 
 | 
  
 | 
@SpringBootTest 
 | 
class KssframeworkApplicationTests { 
 | 
  
 | 
    @Resource 
 | 
    private TestUserDao testUserDao; 
 | 
  
 | 
    @Test 
 | 
    public void testUserInsert() { 
 | 
        for(int i = 0; i < 20; i++) { 
 | 
            TestUserEntity testUser = new TestUserEntity(); 
 | 
            testUser.setCreateBy("123"); 
 | 
            testUser.setCreateTime(new Date()); 
 | 
            testUser.setUpdateBy("123"); 
 | 
            testUser.setUpdateTime(new Date()); 
 | 
            testUser.setAccount("12345" + i); 
 | 
            testUser.setName("hehe" + i); 
 | 
            testUser.setPassword("33333"); 
 | 
            testUserDao.insert(testUser); 
 | 
        } 
 | 
  
 | 
    } 
 | 
  
 | 
    @Test 
 | 
    public void start() { 
 | 
        System.out.println(1); 
 | 
    } 
 | 
  
 | 
} 
 |