Class DynamoDbConnectExtension
- java.lang.Object
-
- net.officefloor.nosql.dynamodb.test.AbstractDynamoDbConnectJunit
-
- net.officefloor.nosql.dynamodb.test.DynamoDbConnectExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback
,org.junit.jupiter.api.extension.AfterEachCallback
,org.junit.jupiter.api.extension.BeforeAllCallback
,org.junit.jupiter.api.extension.BeforeEachCallback
,org.junit.jupiter.api.extension.Extension
public class DynamoDbConnectExtension extends AbstractDynamoDbConnectJunit implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.AfterAllCallback
Extension
for connecting to local DynamoDb.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.nosql.dynamodb.test.AbstractDynamoDbConnectJunit
AbstractDynamoDbConnectJunit.Configuration
-
-
Field Summary
-
Fields inherited from class net.officefloor.nosql.dynamodb.test.AbstractDynamoDbConnectJunit
configuration, DEFAULT_LOCAL_DYNAMO_PORT, dynamoFactory
-
-
Constructor Summary
Constructors Constructor Description DynamoDbConnectExtension()
Instantiate with defaultAbstractDynamoDbConnectJunit.Configuration
.DynamoDbConnectExtension(AbstractDynamoDbConnectJunit.Configuration configuration)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
void
afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
void
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
void
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
-
Methods inherited from class net.officefloor.nosql.dynamodb.test.AbstractDynamoDbConnectJunit
extendStart, extendStop, getAmazonDynamoDb, getDynamoDbMapper, getDynamoDbPort, startAmazonDynamoDb, stopAmazonDynamoDb
-
-
-
-
Constructor Detail
-
DynamoDbConnectExtension
public DynamoDbConnectExtension()
Instantiate with defaultAbstractDynamoDbConnectJunit.Configuration
.
-
DynamoDbConnectExtension
public DynamoDbConnectExtension(AbstractDynamoDbConnectJunit.Configuration configuration)
Instantiate.- Parameters:
configuration
-AbstractDynamoDbConnectJunit.Configuration
.
-
-
Method Detail
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) throws java.lang.Exception
- Specified by:
beforeAll
in interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
- Throws:
java.lang.Exception
-
beforeEach
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) throws java.lang.Exception
- Specified by:
beforeEach
in interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
- Throws:
java.lang.Exception
-
afterEach
public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) throws java.lang.Exception
- Specified by:
afterEach
in interfaceorg.junit.jupiter.api.extension.AfterEachCallback
- Throws:
java.lang.Exception
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) throws java.lang.Exception
- Specified by:
afterAll
in interfaceorg.junit.jupiter.api.extension.AfterAllCallback
- Throws:
java.lang.Exception
-
-