public abstract class TestEntityManagerExtension extends Object implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
| Constructor and Description |
|---|
TestEntityManagerExtension() |
| Modifier and Type | Method and 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) |
protected javax.persistence.EntityManagerFactory |
createEntityManagerFactory() |
protected abstract String |
getPUName() |
static javax.persistence.EntityManager |
newEntityManager() |
protected abstract String getPUName()
protected javax.persistence.EntityManagerFactory createEntityManagerFactory()
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallbackExceptionpublic void afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
afterEach in interface org.junit.jupiter.api.extension.AfterEachCallbackExceptionpublic void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallbackExceptionpublic void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
afterAll in interface org.junit.jupiter.api.extension.AfterAllCallbackExceptionpublic static javax.persistence.EntityManager newEntityManager()
Copyright © 2021. All rights reserved.