Skip to content

Commit 79c5568

Browse files
Update powertools-serialization/src/test/java/software/amazon/lambda/powertools/utilities/EventDeserializerTest.java
Co-authored-by: Pankaj Agrawal <[email protected]>
1 parent 27d1fc0 commit 79c5568

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

powertools-serialization/src/test/java/software/amazon/lambda/powertools/utilities/EventDeserializerTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ public void testDeserializeProductAsProduct_shouldReturnProduct() {
117117

118118

119119
private void assertProduct(Product product) {
120-
assertThat(product.getId()).isEqualTo(1234);
121-
assertThat(product.getName()).isEqualTo("product");
122-
assertThat(product.getPrice()).isEqualTo(42);
120+
assertThat(product)
121+
.isEqualTo(new Product(1234, "product", 42))
122+
.usingRecursiveComparison();
123123
}
124124

125125
}

0 commit comments

Comments
 (0)