File tree Expand file tree Collapse file tree
src/main/java/com/back/web7_9_codecrete_be/global/initData Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ public class BaseInitData {
2222 @ PostConstruct
2323 public void init () {
2424 createTestUser ();
25- createEmailTestUser ();
2625 createAdminUser ();
2726 }
2827
@@ -44,24 +43,6 @@ private void createTestUser() {
4443 userRepository .save (testUser );
4544 }
4645
47- private void createEmailTestUser () {
48- if (userRepository .existsByEmail ("gnldbs1004@naver.com" )) {
49- return ;
50- }
51-
52- User testEmailUser = User .builder ()
53- .email ("gnldbs1004@naver.com" )
54- .nickname ("이메일개발자" )
55- .password (passwordEncoder .encode ("test1234!" ))
56- .birth (LocalDate .of (1999 , 1 , 1 ))
57- .profileImage ("https://example.com/profile.jpg" )
58- .socialType (SocialType .LOCAL )
59- .socialId (null )
60- .build ();
61-
62- userRepository .save (testEmailUser );
63- }
64-
6546 private void createAdminUser () {
6647 if (userRepository .existsByEmail ("admin@test.com" )) {
6748 return ;
You can’t perform that action at this time.
0 commit comments