Skip to content

Commit

Permalink
chore: clean codes
Browse files Browse the repository at this point in the history
  • Loading branch information
hantsy committed Apr 23, 2024
1 parent d6bb655 commit 7348c73
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions pulsar/src/test/java/com/example/InMemoryProfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public InMemoryProfile() {
@Override
public Map<String, String> getConfigOverrides() {
return Map.of(
"quarkus.pulsar.devservices.enabled", "false",
"mp.messaging.outgoing.send.connector","smallrye-in-memory",
"mp.messaging.incoming.messages.connector","smallrye-in-memory",
"mp.messaging.outgoing.data-stream.connector","smallrye-in-memory"
Expand Down
4 changes: 2 additions & 2 deletions pulsar/src/test/java/com/example/MessageHandlerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ void receive() {


handler.send("hello");
assertThat(sink.received().get(0).getPayload()).isEqualTo("hello");
assertThat(sink.received().getFirst().getPayload()).isEqualTo("hello");

messages.send("hello-123");
assertThat(dataStream.received().get(0).getPayload().body()).isEqualTo("hello-123");
assertThat(dataStream.received().getFirst().getPayload().body()).isEqualTo("hello-123");
}
}
7 changes: 4 additions & 3 deletions rabbitmq/src/test/java/com/example/InMemoryProfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ public InMemoryProfile() {
@Override
public Map<String, String> getConfigOverrides() {
return Map.of(
"mp.messaging.outgoing.send.connector","smallrye-in-memory",
"mp.messaging.incoming.messages.connector","smallrye-in-memory",
"mp.messaging.outgoing.data-stream.connector","smallrye-in-memory"
"quarkus.rabbitmq.devservices.enabled", "false",
"mp.messaging.outgoing.send.connector", "smallrye-in-memory",
"mp.messaging.incoming.messages.connector", "smallrye-in-memory",
"mp.messaging.outgoing.data-stream.connector", "smallrye-in-memory"
);
}

Expand Down
4 changes: 2 additions & 2 deletions rabbitmq/src/test/java/com/example/MessageHandlerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ void receive() {


handler.send("hello");
assertThat(sink.received().get(0).getPayload()).isEqualTo("hello");
assertThat(sink.received().getFirst().getPayload()).isEqualTo("hello");

messages.send("hello-123");
assertThat(dataStream.received().get(0).getPayload().body()).isEqualTo("hello-123");
assertThat(dataStream.received().getFirst().getPayload().body()).isEqualTo("hello-123");
}
}

0 comments on commit 7348c73

Please sign in to comment.