projects
/
demos
/
kafka
/
chat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: refined the endpoint-uri's
[demos/kafka/chat]
/
src
/
test
/
java
/
de
/
juplo
/
kafka
/
chat
/
backend
/
api
/
ChatBackendControllerTest.java
diff --git
a/src/test/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerTest.java
b/src/test/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerTest.java
index
eeaf5ee
..
403c9d5
100644
(file)
--- a/
src/test/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerTest.java
+++ b/
src/test/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerTest.java
@@
-41,7
+41,7
@@
public class ChatBackendControllerTest
// When
WebTestClient.ResponseSpec responseSpec = client
.get()
// When
WebTestClient.ResponseSpec responseSpec = client
.get()
- .uri("/
list/{chatroomId}
", chatroomId)
+ .uri("/
{chatroomId}/list
", chatroomId)
.accept(MediaType.APPLICATION_JSON)
.exchange();
.accept(MediaType.APPLICATION_JSON)
.exchange();
@@
-61,7
+61,7
@@
public class ChatBackendControllerTest
// When
WebTestClient.ResponseSpec responseSpec = client
.get()
// When
WebTestClient.ResponseSpec responseSpec = client
.get()
- .uri("/
get/
{chatroomId}", chatroomId)
+ .uri("/{chatroomId}", chatroomId)
.accept(MediaType.APPLICATION_JSON)
.exchange();
.accept(MediaType.APPLICATION_JSON)
.exchange();
@@
-83,7
+83,7
@@
public class ChatBackendControllerTest
WebTestClient.ResponseSpec responseSpec = client
.put()
.uri(
WebTestClient.ResponseSpec responseSpec = client
.put()
.uri(
- "/
put/
{chatroomId}/{username}/{messageId}",
+ "/{chatroomId}/{username}/{messageId}",
chatroomId,
username,
messageId)
chatroomId,
username,
messageId)
@@
-109,7
+109,7
@@
public class ChatBackendControllerTest
WebTestClient.ResponseSpec responseSpec = client
.get()
.uri(
WebTestClient.ResponseSpec responseSpec = client
.get()
.uri(
- "/
get/
{chatroomId}/{username}/{messageId}",
+ "/{chatroomId}/{username}/{messageId}",
chatroomId,
username,
messageId)
chatroomId,
username,
messageId)
@@
-131,7
+131,7
@@
public class ChatBackendControllerTest
// When
WebTestClient.ResponseSpec responseSpec = client
.get()
// When
WebTestClient.ResponseSpec responseSpec = client
.get()
- .uri("/
listen/{chatroomId}
", chatroomId)
+ .uri("/
{chatroomId}/listen
", chatroomId)
// .accept(MediaType.TEXT_EVENT_STREAM, MediaType.APPLICATION_JSON) << TODO: Does not work!
.exchange();
// .accept(MediaType.TEXT_EVENT_STREAM, MediaType.APPLICATION_JSON) << TODO: Does not work!
.exchange();
@@
-185,7
+185,7
@@
public class ChatBackendControllerTest
client
.put()
.uri(
client
.put()
.uri(
- "/
put/
{chatroomId}/{username}/{messageId}",
+ "/{chatroomId}/{username}/{messageId}",
chatroomId,
user,
messageId)
chatroomId,
user,
messageId)
@@
-232,7
+232,7
@@
public class ChatBackendControllerTest
client
.put()
.uri(
client
.put()
.uri(
- "/
put/
{chatroomId}/{username}/{messageId}",
+ "/{chatroomId}/{username}/{messageId}",
chatroomId,
user,
messageId)
chatroomId,
user,
messageId)