File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -186,13 +186,10 @@ public void testPostTargetThrowsWithDuplicateConnectUrl() throws Exception {
186
186
public void testDeleteTargetThrowsWithInvalidConnectUrl () throws Exception {
187
187
188
188
CompletableFuture <JsonObject > response = new CompletableFuture <>();
189
- MultiMap form = MultiMap .caseInsensitiveMultiMap ();
190
- form .add ("targetId" , "invalidConnectUrl" );
191
189
192
190
webClient
193
- .post (REQ_URL )
194
- .sendForm (
195
- form ,
191
+ .delete (String .format ("%s/%s" , REQ_URL , "invalidTargetId" ))
192
+ .send (
196
193
ar -> {
197
194
assertRequestStatus (ar , response );
198
195
});
@@ -208,15 +205,13 @@ public void testDeleteTargetThrowsWithNonExistentConnectUrl() throws Exception {
208
205
209
206
CompletableFuture <JsonObject > response = new CompletableFuture <>();
210
207
MultiMap form = MultiMap .caseInsensitiveMultiMap ();
211
- final String nonExistentUrl =
208
+ final String nonExistentTargetId =
212
209
URLEncodedUtils .formatSegments (
213
210
String .format ("service:jmx:rmi:///jndi/rmi://invalid:9091/jmxrmi" ));
214
- form .add ("targetId" , nonExistentUrl );
215
211
216
212
webClient
217
- .post (REQ_URL )
218
- .sendForm (
219
- form ,
213
+ .delete (String .format ("%s/%s" , REQ_URL , nonExistentTargetId ))
214
+ .send (
220
215
ar -> {
221
216
assertRequestStatus (ar , response );
222
217
});
You can’t perform that action at this time.
0 commit comments