import java.util.List;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.random.RandomGenerator;
import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.Matchers.endsWith;
-import static pl.rzrz.assertj.reactor.Assertions.assertThat;
@Slf4j
MessageTo sentMessage = webTestClient
.put()
.uri(
- "http://localhost:{port}/{chatRoomId}/nerd/7",
+ "http://localhost:{port}/{chatRoomId}/nerd/{messageId}",
port,
- EXISTING_CHATROOM)
+ EXISTING_CHATROOM,
+ RandomGenerator.getDefault().nextInt())
.contentType(MediaType.TEXT_PLAIN)
.accept(MediaType.APPLICATION_JSON)
.bodyValue("Hello world!")