-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewriting tests part 2 #1790
Rewriting tests part 2 #1790
Conversation
szczygiel-m
commented
Nov 28, 2023
•
edited
edited
- JmsConsumingTest
- FilteringJsonTest
- FilteringHeadersTest
…n-tests-part1 # Conflicts: # integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/client/ConsumerTestClient.java # integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/client/HermesTestClient.java # integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/setup/HermesConsumersTestApp.java # integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/setup/HermesExtension.java
…n-tests-part2 # Conflicts: # integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/client/FrontendTestClient.java # integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/client/HermesTestClient.java
…n-tests-part2 # Conflicts: # integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/client/FrontendTestClient.java # integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/client/HermesTestClient.java # integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/subscriber/TestJmsSubscriber.java
@RegisterExtension | ||
public static final HermesExtension hermes = new HermesExtension(); | ||
|
||
@BeforeAll |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's also perform clean up after all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor issue to fix and then +1 from me
hermes.api().publishUntilSuccess(topic.getQualifiedName(), BOB_GREY.asJson()); | ||
|
||
// then | ||
subscriber.waitUntilReceived(BOB_GREY.asJson()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say this check is insufficient because it only checks whether BOB_GREY
has been received and does not fail when receiving other messages. Can we add an assertion that only this message was received? This also applies to other filtering tests