@@ -30,7 +30,8 @@ public class AvatarAssignmentElideTest extends AbstractIntegrationTest {
3030
3131 @ Test
3232 public void getUnusedAvatar () throws Exception {
33- mockMvc .perform (get ("/data/avatar/3" ))
33+ mockMvc .perform (get ("/data/avatar/3" )
34+ .with (getOAuthTokenWithActiveUser (NO_SCOPE , NO_AUTHORITIES )))
3435 .andExpect (status ().isOk ())
3536 .andExpect (jsonPath ("$.data.id" , is ("3" )))
3637 .andExpect (jsonPath ("$.data.type" , is ("avatar" )))
@@ -41,7 +42,8 @@ public void getUnusedAvatar() throws Exception {
4142
4243 @ Test
4344 public void getAvatarWithPlayer () throws Exception {
44- mockMvc .perform (get ("/data/avatar/2" ))
45+ mockMvc .perform (get ("/data/avatar/2" )
46+ .with (getOAuthTokenWithActiveUser (NO_SCOPE , NO_AUTHORITIES )))
4547 .andExpect (status ().isOk ())
4648 .andExpect (jsonPath ("$.data.id" , is ("2" )))
4749 .andExpect (jsonPath ("$.data.type" , is ("avatar" )))
@@ -52,7 +54,8 @@ public void getAvatarWithPlayer() throws Exception {
5254
5355 @ Test
5456 public void getAvatarURLEncoded () throws Exception {
55- mockMvc .perform (get ("/data/avatar/4" ))
57+ mockMvc .perform (get ("/data/avatar/4" )
58+ .with (getOAuthTokenWithActiveUser (NO_SCOPE , NO_AUTHORITIES )))
5659 .andExpect (status ().isOk ())
5760 .andExpect (jsonPath ("$.data.id" , is ("4" )))
5861 .andExpect (jsonPath ("$.data.type" , is ("avatar" )))
@@ -148,7 +151,8 @@ public void canUpdateAvatarAssignmentExpirationWithScopeAndRole() throws Excepti
148151 .content (createJsonApiContent (avatarAssignment )))
149152 .andExpect (status ().isNoContent ());
150153 mockMvc .perform (
151- get ("/data/avatarAssignment/{assignmentId}" , 1 ))
154+ get ("/data/avatarAssignment/{assignmentId}" , 1 )
155+ .with (getOAuthTokenWithActiveUser (NO_SCOPE , NO_AUTHORITIES )))
152156 .andExpect (status ().isOk ())
153157 .andExpect (jsonPath ("$.data.attributes.expiresAt" , is (OFFSET_DATE_TIME_FORMATTER .format (now ))));
154158 }
0 commit comments