Skip to content

Commit a7bdcff

Browse files
committed
TableOperationTest - TestAttributeValues - Include checks for when byteBuffer should be empty
1 parent 4d6f5a4 commit a7bdcff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/aws-cpp-sdk-dynamodb-integration-tests/TableOperationTest.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ TEST_F(TableOperationTest, TestAttributeValues)
907907
const Aws::Utils::ByteBuffer byteBuffer1(buffer1, 6);
908908
unsigned char buffer2[6] = { 21, 35, 55, 68, 11, 6 };
909909
const Aws::Utils::ByteBuffer byteBuffer2(buffer2, 6);
910-
910+
const Aws::Utils::ByteBuffer emptyBuf;
911911
// create the Hash Key value
912912
AttributeValue hashKey("TestValue");
913913

@@ -947,6 +947,9 @@ TEST_F(TableOperationTest, TestAttributeValues)
947947
//ReturnedItemCollection returnedItemCollection = result.GetItems();
948948
EXPECT_EQ("TestValue", returnedItemCollection[HASH_KEY_NAME].GetS());
949949
EXPECT_EQ("String Value", returnedItemCollection["String"].GetS());
950+
951+
EXPECT_EQ(emptyBuf, returnedItemCollection["ByteBuffer"].GetB());
952+
EXPECT_EQ(emptyBuf, returnedItemCollection["ByteBuffer"].AccessB());
950953
}
951954

952955
// Number Value

0 commit comments

Comments
 (0)