BAEL-223: Add Ignore annotation to tests since there is not local dynamoDB instance in cloud environment
This commit is contained in:
parent
8dd8cab664
commit
9d735eb663
@ -9,6 +9,7 @@ import com.baeldung.Application;
|
|||||||
import com.baeldung.spring.data.dynamodb.model.ProductInfo;
|
import com.baeldung.spring.data.dynamodb.model.ProductInfo;
|
||||||
import com.baeldung.spring.data.dynamodb.repositories.ProductInfoRepository;
|
import com.baeldung.spring.data.dynamodb.repositories.ProductInfoRepository;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -43,6 +44,7 @@ public class ProductInfoRepositoryIntegrationTest {
|
|||||||
private static final String EXPECTED_PRICE = "50";
|
private static final String EXPECTED_PRICE = "50";
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
|
@Ignore //TODO Remove Ignore annotations when running locally with Local DynamoDB instance
|
||||||
public void setup() throws Exception {
|
public void setup() throws Exception {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -62,6 +64,7 @@ public class ProductInfoRepositoryIntegrationTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore //TODO Remove Ignore annotations when running locally with Local DynamoDB instance
|
||||||
public void givenItemWithExpectedCost_whenRunFindAll_thenItemIsFound() {
|
public void givenItemWithExpectedCost_whenRunFindAll_thenItemIsFound() {
|
||||||
|
|
||||||
ProductInfo productInfo = new ProductInfo(EXPECTED_COST, EXPECTED_PRICE);
|
ProductInfo productInfo = new ProductInfo(EXPECTED_COST, EXPECTED_PRICE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user