Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
amazon_dynamodb [2018/05/30 07:38]
root [Running Local Version]
amazon_dynamodb [2018/06/06 00:05]
root [Running and Embedded Dynamodb]
Line 157: Line 157:
         Item item = table.getItem(new PrimaryKey("​id",​ "​516037-289558-289559"​));​         Item item = table.getItem(new PrimaryKey("​id",​ "​516037-289558-289559"​));​
 </​code> ​       ​ </​code> ​       ​
 +
 +== Testing with Spring == 
 +
 +<code java>
 +@RunWith(SpringJUnit4ClassRunner.class)
 +@SpringBootTest(classes = Application.class)
 +@WebAppConfiguration
 +@ActiveProfiles("​local"​)
 +@TestPropertySource(properties = { 
 +  "​amazon.dynamodb.endpoint=http://​localhost:​8000/", ​
 +  "​amazon.aws.accesskey=test1", ​
 +  "​amazon.aws.secretkey=test231"​ })
 +public class ProductInfoRepositoryIntegrationTest {
 + 
 +    private DynamoDBMapper dynamoDBMapper;​
 + 
 +    @Autowired
 +    private AmazonDynamoDB amazonDynamoDB;​
 +</​code> ​
 
amazon_dynamodb.txt · Last modified: 2018/06/11 05:48 by root
 
RSS - 200 © CrosswireDigitialMedia Ltd