retrieving the object from optional object
This commit is contained in:
parent
cd3ea37b6b
commit
75df0b0778
|
@ -27,7 +27,7 @@ public class AzurecosmodbApplicationManualTest {
|
|||
|
||||
productRepository.save(product);
|
||||
Optional<Product> retrievedProduct = productRepository.findById("1001", new PartitionKey("Shirt"));
|
||||
Assert.notNull(retrievedProduct, "Retrieved Product is Null");
|
||||
Assert.notNull(retrievedProduct.get(), "Retrieved Product is Null");
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue