From 9d735eb663f5f687bdb2ace39795ec74ffc9790f Mon Sep 17 00:00:00 2001 From: Chris Anatalio Date: Wed, 26 Oct 2016 17:33:36 -0700 Subject: [PATCH] BAEL-223: Add Ignore annotation to tests since there is not local dynamoDB instance in cloud environment --- .../repository/ProductInfoRepositoryIntegrationTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-data-dynamodb/src/test/java/com/baeldung/spring/data/dynamodb/repository/ProductInfoRepositoryIntegrationTest.java b/spring-data-dynamodb/src/test/java/com/baeldung/spring/data/dynamodb/repository/ProductInfoRepositoryIntegrationTest.java index e384f7dff4..8fe3e96940 100644 --- a/spring-data-dynamodb/src/test/java/com/baeldung/spring/data/dynamodb/repository/ProductInfoRepositoryIntegrationTest.java +++ b/spring-data-dynamodb/src/test/java/com/baeldung/spring/data/dynamodb/repository/ProductInfoRepositoryIntegrationTest.java @@ -9,6 +9,7 @@ import com.baeldung.Application; import com.baeldung.spring.data.dynamodb.model.ProductInfo; import com.baeldung.spring.data.dynamodb.repositories.ProductInfoRepository; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -43,6 +44,7 @@ public class ProductInfoRepositoryIntegrationTest { private static final String EXPECTED_PRICE = "50"; @Before + @Ignore //TODO Remove Ignore annotations when running locally with Local DynamoDB instance public void setup() throws Exception { try { @@ -62,6 +64,7 @@ public class ProductInfoRepositoryIntegrationTest { } @Test + @Ignore //TODO Remove Ignore annotations when running locally with Local DynamoDB instance public void givenItemWithExpectedCost_whenRunFindAll_thenItemIsFound() { ProductInfo productInfo = new ProductInfo(EXPECTED_COST, EXPECTED_PRICE);