-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakeTestQuery.java
More file actions
41 lines (41 loc) · 1.37 KB
/
MakeTestQuery.java
File metadata and controls
41 lines (41 loc) · 1.37 KB
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
32
33
34
35
36
37
38
39
40
41
//package NextLevel.demo.query.make;
//
//import NextLevel.demo.user.dto.RequestUserCreateDto;
//import NextLevel.demo.user.dto.login.RequestEmailLoginDto;
//import NextLevel.demo.user.service.LoginService;
//import NextLevel.demo.user.service.UserService;
//import org.junit.jupiter.api.Test;
//import org.junit.jupiter.api.extension.ExtendWith;
//import org.mockito.junit.jupiter.MockitoExtension;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.ActiveProfiles;
//
//import java.util.ArrayList;
//
//@SpringBootTest
//@ActiveProfiles("query-test")
//@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
//@ExtendWith(MockitoExtension.class)
//public class MakeTestQuery {
//
// @Autowired
// private LoginService loginService;
//
// @Test
// public void makeUser100() {
// for(int i = 0; i < 100; i++) {
// loginService.register(randomDto(), new ArrayList<>());
// }
// }
//
// private RequestUserCreateDto randomDto(int count){
// RequestUserCreateDto dto = RequestUserCreateDto
// .builder()
// .name("user" + count)
// .email("email"+count)
// .
// }
//
//}