Class ObjectifyExtension
java.lang.Object
net.officefloor.nosql.objectify.mock.AbstractObjectifyJUnit
net.officefloor.nosql.objectify.mock.ObjectifyExtension
- 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 ObjectifyExtension
extends AbstractObjectifyJUnit
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 running Objectify with local Datastore.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested classes/interfaces inherited from class net.officefloor.nosql.objectify.mock.AbstractObjectifyJUnit
AbstractObjectifyJUnit.QueryLoader<E>, AbstractObjectifyJUnit.ResultLoader<E>, AbstractObjectifyJUnit.TimeoutException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAll(org.junit.jupiter.api.extension.ExtensionContext context) voidafterEach(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext context) Methods inherited from class net.officefloor.nosql.objectify.mock.AbstractObjectifyJUnit
consistent, get, get, get, get, get, ofy, setupLocalDataStore, store, tearDownLocalDataStore
-
Constructor Details
-
ObjectifyExtension
public ObjectifyExtension()
-
-
Method Details
-
beforeAll
- Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback- Throws:
Exception
-
beforeEach
- Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback- Throws:
Exception
-
afterEach
- Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback- Throws:
Exception
-
afterAll
- Specified by:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback- Throws:
Exception
-