Skip to content

Commit 06e40eb

Browse files
fix comments in integration test
1 parent d2bd9df commit 06e40eb

File tree

1 file changed

+3
-3
lines changed
  • aws/spring-cloud-sns-sqs-pubsub/integration-test/src/test/java/io/reflectoring

1 file changed

+3
-3
lines changed

Diff for: aws/spring-cloud-sns-sqs-pubsub/integration-test/src/test/java/io/reflectoring/PubSubIT.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static void properties(DynamicPropertyRegistry registry) {
6767
void test(CapturedOutput output) {
6868
// prepare API request body to create user
6969
final var name = RandomString.make();
70-
final var emailId = RandomString.make() + "@domain.it";
70+
final var emailId = RandomString.make() + "@reflectoring.io";
7171
final var password = RandomString.make();
7272
final var userCreationRequestBody = String.format("""
7373
{
@@ -84,11 +84,11 @@ void test(CapturedOutput output) {
8484
.content(userCreationRequestBody))
8585
.andExpect(status().isCreated());
8686

87-
// assert that message has been received by the queue
87+
// assert that message has been published to SNS topic
8888
final var expectedPublisherLog = String.format("Successfully published message to topic ARN: %s", TOPIC_ARN);
8989
Awaitility.await().atMost(1, TimeUnit.SECONDS).until(() -> output.getAll().contains(expectedPublisherLog));
9090

91-
// assert that message has been received by the queue
91+
// assert that message has been received by the SQS queue
9292
final var expectedSubscriberLog = String.format("Dispatching account creation email to %s on %s", name, emailId);
9393
Awaitility.await().atMost(1, TimeUnit.SECONDS).until(() -> output.getAll().contains(expectedSubscriberLog));
9494
}

0 commit comments

Comments
 (0)