Skip to content

Commit

Permalink
receive messages from empty queue test
Browse files Browse the repository at this point in the history
  • Loading branch information
micossow committed May 29, 2024
1 parent bfb692b commit c22fd8a
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,17 @@ abstract class AmazonJavaSdkNewTestSuite
messageAttributes(MessageGroupId) shouldBe "gp1"
}

test("should not fail when receiving messages from empty queue") {
// given
val queueUrl = testClient.createQueue("testQueue1")

// when
val messages = testClient.receiveMessage(queueUrl)

// then
messages should have size 0
}

private def doTestSendAndReceiveMessageWithAttributes(
content: String,
messageAttributes: Map[String, MessageAttribute] = Map.empty,
Expand Down

0 comments on commit c22fd8a

Please sign in to comment.