File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/test/java/com/example/log4u Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 66import org .junit .jupiter .api .Test ;
77import org .springframework .beans .factory .annotation .Autowired ;
88import org .springframework .boot .test .context .SpringBootTest ;
9- import org .springframework .test .annotation .DirtiesContext ;
109
1110import com .example .log4u .domain .follow .entitiy .Follow ;
1211import com .example .log4u .domain .follow .exception .FollowNotFoundException ;
2120
2221@ DisplayName ("팔로우 통합 테스트(시큐리티 제외)" )
2322@ SpringBootTest
24- @ DirtiesContext (classMode = DirtiesContext .ClassMode .AFTER_EACH_TEST_METHOD )
2523class FollowTest {
2624
2725 @ Autowired
Original file line number Diff line number Diff line change 11package com .example .log4u .fixture ;
22
3+ import java .time .LocalDateTime ;
4+
35import com .example .log4u .domain .user .entity .SocialType ;
46import com .example .log4u .domain .user .entity .User ;
57
68public class UserFixture {
79
810 public static User createUserFixture () {
911 return User .builder ()
10- .name ("test" )
12+ .name ("test" + LocalDateTime . now () )
1113 .nickname ("testUser" )
1214 .providerId ("123" )
13151416 .socialType (SocialType .KAKAO )
1517 .role ("ROLE_USER" )
16- .statusMessage ("상태 메시지" )
18+ .statusMessage (LocalDateTime . now (). toString () )
1719 .isPremium (false )
1820 .build ();
1921 }
You can’t perform that action at this time.
0 commit comments