From d48bf9d2b6e122e21caf1e965a5bfb374757b50f Mon Sep 17 00:00:00 2001 From: "chris.anatalio" Date: Sat, 17 Sep 2016 23:15:17 -0700 Subject: [PATCH] BAEL-223 - Update Unit test name --- .../repository/ProductInfoRepositoryIntegrationTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spring-boot-data-dynamodb/src/test/java/com/baeldung/spring/data/es/repository/ProductInfoRepositoryIntegrationTest.java b/spring-boot-data-dynamodb/src/test/java/com/baeldung/spring/data/es/repository/ProductInfoRepositoryIntegrationTest.java index 438499bae8..43369d3254 100644 --- a/spring-boot-data-dynamodb/src/test/java/com/baeldung/spring/data/es/repository/ProductInfoRepositoryIntegrationTest.java +++ b/spring-boot-data-dynamodb/src/test/java/com/baeldung/spring/data/es/repository/ProductInfoRepositoryIntegrationTest.java @@ -25,7 +25,6 @@ import com.amazonaws.services.dynamodbv2.model.CreateTableRequest; import com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput; import com.amazonaws.services.dynamodbv2.model.ResourceInUseException; import com.baeldung.spring.data.es.model.ProductInfo; -import com.baeldung.spring.data.es.repository.ProductInfoRepository; @RunWith(SpringJUnit4ClassRunner.class) @SpringApplicationConfiguration(classes = Application.class) @@ -73,10 +72,10 @@ public class ProductInfoRepositoryIntegrationTest { @Ignore @Test - public void sampleTestCase() { + public void givenItemWithExpectedCost_whenRunFindAll_thenItemIsFound() { - ProductInfo dave = new ProductInfo(EXPECTED_COST, EXPECTED_PRICE); - ProductInfoRepository.save(dave); + ProductInfo productInfo = new ProductInfo(EXPECTED_COST, EXPECTED_PRICE); + ProductInfoRepository.save(productInfo); List result = (List) ProductInfoRepository.findAll(); assertTrue("Not empty", result.size() > 0);