Code for BAEL-1474 (#4472)
* Code for BAEL-1474 * Renamed test to conform to PMD rules
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
package org.baeldung.spring.amqp;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
|
||||
|
||||
public class SpringWebfluxAmqpLiveTest {
|
||||
|
||||
@Test
|
||||
public void whenSendingAMessageToQueue_thenAcceptedReturnCode() {
|
||||
|
||||
WebTestClient client = WebTestClient.bindToServer()
|
||||
.baseUrl("http://localhost:8080")
|
||||
.build();
|
||||
|
||||
client.post()
|
||||
.uri("/queue/NYSE")
|
||||
.syncBody("Test Message")
|
||||
.exchange()
|
||||
.expectStatus().isAccepted();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user