@@ -57,13 +57,13 @@ public void getEmptyName() throws URISyntaxException {
57
57
@ Test
58
58
public void getNameAccessDenied () throws URISyntaxException {
59
59
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class , createRoomObject ()::getName );
60
- checkErrorInfo403 (e );
60
+ checkErrorInfoAccessDenied (e );
61
61
}
62
62
63
63
@ Test
64
64
public void getNameRateLimited () throws URISyntaxException {
65
65
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class , createRoomObject ()::getName );
66
- checkErrorInfo429 (e );
66
+ checkErrorInfoRateLimited (e );
67
67
}
68
68
69
69
@ Test
@@ -79,13 +79,13 @@ public void getEmptyTopic() throws URISyntaxException {
79
79
@ Test
80
80
public void getTopicAccessDenied () throws URISyntaxException {
81
81
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class , createRoomObject ()::getTopic );
82
- checkErrorInfo403 (e );
82
+ checkErrorInfoAccessDenied (e );
83
83
}
84
84
85
85
@ Test
86
86
public void getTopicRateLimited () throws URISyntaxException {
87
87
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class , createRoomObject ()::getTopic );
88
- checkErrorInfo429 (e );
88
+ checkErrorInfoRateLimited (e );
89
89
}
90
90
91
91
@ Test
@@ -96,19 +96,19 @@ public void join() throws URISyntaxException {
96
96
@ Test
97
97
public void joinRoomNotFound () throws URISyntaxException {
98
98
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class , createRoomObject ()::join );
99
- checkErrorInfo404 (e );
99
+ checkErrorInfoNotFound (e );
100
100
}
101
101
102
102
@ Test
103
103
public void joinAccessDenied () throws URISyntaxException {
104
104
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class , createRoomObject ()::join );
105
- checkErrorInfo403 (e );
105
+ checkErrorInfoAccessDenied (e );
106
106
}
107
107
108
108
@ Test
109
109
public void joinRateLimited () throws URISyntaxException {
110
110
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class , createRoomObject ()::join );
111
- checkErrorInfo429 (e );
111
+ checkErrorInfoRateLimited (e );
112
112
}
113
113
114
114
@ Test
@@ -119,7 +119,7 @@ public void leave() throws URISyntaxException {
119
119
@ Test
120
120
public void leaveAccessDenied () throws URISyntaxException {
121
121
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class , createRoomObject ()::leave );
122
- checkErrorInfo403 (e );
122
+ checkErrorInfoAccessDenied (e );
123
123
}
124
124
125
125
@ Test
@@ -130,7 +130,7 @@ public void leaveRoomNotFound() throws URISyntaxException {
130
130
@ Test
131
131
public void leaveRateLimited () throws URISyntaxException {
132
132
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class , createRoomObject ()::leave );
133
- checkErrorInfo429 (e );
133
+ checkErrorInfoRateLimited (e );
134
134
}
135
135
136
136
@ Test
@@ -142,21 +142,21 @@ public void sendText() throws URISyntaxException {
142
142
public void sendTextAccessDenied () throws URISyntaxException {
143
143
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class ,
144
144
() -> createRoomObject ().sendText (testText ));
145
- checkErrorInfo403 (e );
145
+ checkErrorInfoAccessDenied (e );
146
146
}
147
147
148
148
@ Test
149
149
public void sendTextRoomNotFound () throws URISyntaxException {
150
150
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class ,
151
151
() -> createRoomObject ().sendText (testText ));
152
- checkErrorInfo404 (e );
152
+ checkErrorInfoNotFound (e );
153
153
}
154
154
155
155
@ Test
156
156
public void sendTextRateLimited () throws URISyntaxException {
157
157
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class ,
158
158
() -> createRoomObject ().sendText (testText ));
159
- checkErrorInfo429 (e );
159
+ checkErrorInfoRateLimited (e );
160
160
}
161
161
162
162
@ Test
@@ -172,14 +172,14 @@ public void getJoinedUsers() throws URISyntaxException {
172
172
public void getJoinedUsersRoomNotFound () throws URISyntaxException {
173
173
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class ,
174
174
createRoomObject ()::getJoinedUsers );
175
- checkErrorInfo404 (e );
175
+ checkErrorInfoNotFound (e );
176
176
}
177
177
178
178
@ Test
179
179
public void getJoinedUsersRateLimited () throws URISyntaxException {
180
180
MatrixClientRequestException e = assertThrows (MatrixClientRequestException .class ,
181
181
createRoomObject ()::getJoinedUsers );
182
- checkErrorInfo429 (e );
182
+ checkErrorInfoRateLimited (e );
183
183
}
184
184
185
185
private MatrixHttpRoom createRoomObject () throws URISyntaxException {
0 commit comments