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 29, 2024
1 parent c711057 commit ff5fef3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kafka/src/main/java/com/example/MessageResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class MessageResource {
@Inject
MessageHandler handler;
@Inject
@Channel("data-stream")
@Channel("data-result")
// Publisher<Message> stream;
// see: https://github.com/quarkusio/quarkus/issues/35219
Flow.Publisher<Message> stream;
Expand Down
2 changes: 1 addition & 1 deletion kafka/src/test/java/com/example/MessageResourceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ void testSendAndReceiveMessages() {
}

assertThat(messageReplay.size()).isEqualTo(1);
assertThat(messageReplay.get(0).body()).isEqualTo("hello");
assertThat(messageReplay.getFirst().body()).isEqualTo("hello");
}
}
2 changes: 1 addition & 1 deletion pulsar/src/main/java/com/example/MessageResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class MessageResource {
MessageHandler handler;

@Inject
@Channel("data-stream")
@Channel("data-result")
// Publisher<Message> stream;
// see: https://github.com/quarkusio/quarkus/issues/35219
Flow.Publisher<Message> stream;
Expand Down
2 changes: 1 addition & 1 deletion pulsar/src/test/java/com/example/MessageResourceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ void testSendAndReceiveMessages() {
}

assertThat(messageReplay.size()).isEqualTo(1);
assertThat(messageReplay.get(0).body()).isEqualTo("hello");
assertThat(messageReplay.getFirst().body()).isEqualTo("hello");
}
}

0 comments on commit ff5fef3

Please sign in to comment.