uncommenting the @SpringBootTest and @Test annotation
This commit is contained in:
parent
bb391a389f
commit
204caa3219
|
@ -11,17 +11,13 @@ import org.springframework.util.Assert;
|
||||||
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
//Uncomment this when configured URI and keys for Azure Cosmos DB in application.properties
|
@SpringBootTest
|
||||||
//to run the integration test
|
|
||||||
//@SpringBootTest
|
|
||||||
public class AzurecosmodbApplicationManualTest {
|
public class AzurecosmodbApplicationManualTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
ProductRepository productRepository;
|
ProductRepository productRepository;
|
||||||
|
|
||||||
// Uncomment this when configured URI and keys for Azure Cosmos DB in application.properties
|
@Test
|
||||||
// to run the integration test
|
|
||||||
//@Test
|
|
||||||
public void givenProductIsCreated_whenCallFindById_thenProductIsFound() {
|
public void givenProductIsCreated_whenCallFindById_thenProductIsFound() {
|
||||||
Product product = new Product();
|
Product product = new Product();
|
||||||
product.setProductid("1001");
|
product.setProductid("1001");
|
||||||
|
|
Loading…
Reference in New Issue