@@ -47,12 +47,9 @@ public class ClanElideTest extends AbstractIntegrationTest {
4747 @ Test
4848 @ WithUserDetails (AUTH_CLAN_LEADER )
4949 public void canDeleteMemberOfOwnClan () throws Exception {
50- assertNotNull (playerRepository .getOne (12 ).getClan ());
51-
5250 mockMvc .perform (
5351 delete ("/data/clanMembership/2" )) // magic value from prepClanData.sql
5452 .andExpect (status ().isNoContent ());
55- assertNull (playerRepository .getOne (12 ).getClan ());
5653 }
5754
5855 @ Test
@@ -76,13 +73,9 @@ public void cannotDeleteLeaderFromClan() throws Exception {
7673 @ Test
7774 @ WithUserDetails (AUTH_CLAN_MEMBER )
7875 public void canLeaveClan () throws Exception {
79- assertNotNull (playerRepository .getOne (12 ).getClan ());
80-
8176 mockMvc .perform (
8277 delete ("/data/clanMembership/2" )) // magic value from prepClanData.sql
8378 .andExpect (status ().isNoContent ());
84-
85- assertNull (playerRepository .getOne (12 ).getClan ());
8679 }
8780
8881 @ Test
@@ -106,30 +99,22 @@ public void getFilteredPlayerForClanInvite() throws Exception {
10699 @ Test
107100 @ WithUserDetails (AUTH_CLAN_LEADER )
108101 public void canTransferLeadershipAsLeader () throws Exception {
109- assertThat (clanRepository .getOne (1 ).getLeader ().getLogin (), is (AUTH_CLAN_LEADER ));
110-
111102 mockMvc .perform (
112103 patch ("/data/clan/1" )
113104 .header (HttpHeaders .CONTENT_TYPE , JsonApiMediaType .JSON_API_MEDIA_TYPE )
114105 .content (generateTransferLeadershipContent (1 , 12 ))) // magic value from prepClanData.sql
115106 .andExpect (status ().isNoContent ());
116-
117- assertThat (clanRepository .getOne (1 ).getLeader ().getLogin (), is (AUTH_CLAN_MEMBER ));
118107 }
119108
120109 @ Test
121110 @ WithUserDetails (AUTH_CLAN_MEMBER )
122111 public void cannotTransferLeadershipAsMember () throws Exception {
123- assertThat (clanRepository .getOne (1 ).getLeader ().getLogin (), is (AUTH_CLAN_LEADER ));
124-
125112 mockMvc .perform (
126113 patch ("/data/clan/1" )
127114 .header (HttpHeaders .CONTENT_TYPE , JsonApiMediaType .JSON_API_MEDIA_TYPE )
128115 .content (generateTransferLeadershipContent (1 , 12 ))) // magic value from prepClanData.sql
129116 .andExpect (status ().isForbidden ())
130117 .andExpect (jsonPath ("$.errors[0].detail" , is ("UpdatePermission Denied" )));
131-
132- assertThat (clanRepository .getOne (1 ).getLeader ().getLogin (), is (AUTH_CLAN_LEADER ));
133118 }
134119
135120 @ Test
0 commit comments