BAEL-223: Add Ignore annotation to tests since there is not local dynamoDB instance in cloud environment

This commit is contained in:
Chris Anatalio 2016-10-26 17:33:36 -07:00
parent 8dd8cab664
commit 9d735eb663
1 changed files with 3 additions and 0 deletions

View File

@ -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);