@@ -125,7 +125,7 @@ class UserControllerTest extends BaseControllerTest {
125
125
given :
126
126
userService. findOne(1 ) >> {
127
127
User user = new User (id : 1 , username : " test1@test.com" , password : " secret" , name : " test" )
128
- UserStats userStats = new UserStats (3 , 2 , 1 , false )
128
+ UserStats userStats = new UserStats (3 , 2 , 1 )
129
129
return Optional . of(UserDTO . newInstance(user, userStats, null ))
130
130
}
131
131
@@ -139,6 +139,7 @@ class UserControllerTest extends BaseControllerTest {
139
139
andExpect(jsonPath(' $.email' , isEmptyOrNullString()))
140
140
andExpect(jsonPath(' $.avatarHash' , is(" 94fba03762323f286d7c3ca9e001c541" )))
141
141
andExpect(jsonPath(' $.isMyself' , nullValue()))
142
+ andExpect(jsonPath(' $.isFollowedByMe' , nullValue()))
142
143
andExpect(jsonPath(' $.userStats' ). exists())
143
144
andExpect(jsonPath(' $.userStats.micropostCnt' , is(3 )))
144
145
andExpect(jsonPath(' $.userStats.followingCnt' , is(2 )))
@@ -164,7 +165,7 @@ class UserControllerTest extends BaseControllerTest {
164
165
signIn()
165
166
userService. findMe() >> {
166
167
User user = new User (id : 1 , username : " test1@test.com" , password : " secret" , name : " test" )
167
- UserStats userStats = new UserStats (3 , 2 , 1 , true )
168
+ UserStats userStats = new UserStats (3 , 2 , 1 )
168
169
return Optional . of(UserDTO . newInstance(user, userStats, true ))
169
170
}
170
171
@@ -178,6 +179,7 @@ class UserControllerTest extends BaseControllerTest {
178
179
andExpect(jsonPath(' $.email' , is(" test1@test.com" )))
179
180
andExpect(jsonPath(' $.avatarHash' , is(" 94fba03762323f286d7c3ca9e001c541" )))
180
181
andExpect(jsonPath(' $.isMyself' , is(true )))
182
+ andExpect(jsonPath(' $.isFollowedByMe' , nullValue()))
181
183
andExpect(jsonPath(' $.userStats' ). exists())
182
184
andExpect(jsonPath(' $.userStats.micropostCnt' , is(3 )))
183
185
andExpect(jsonPath(' $.userStats.followingCnt' , is(2 )))
0 commit comments