Code for BAEL-1474 (#4472)

* Code for BAEL-1474

* Renamed test to conform to PMD rules
This commit is contained in:
psevestre
2018-06-13 02:12:05 -03:00
committed by maibin
parent 2a07b03b69
commit b59da11c66
9 changed files with 524 additions and 1 deletions
@@ -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();
}
}