Package com.github.database.rider.junit5
Class JUnit5RiderTestContext
- java.lang.Object
-
- com.github.database.rider.core.AbstractRiderTestContext
-
- com.github.database.rider.junit5.JUnit5RiderTestContext
-
- All Implemented Interfaces:
RiderTestContext
public class JUnit5RiderTestContext extends AbstractRiderTestContext
-
-
Field Summary
-
Fields inherited from class com.github.database.rider.core.AbstractRiderTestContext
executor
-
-
Constructor Summary
Constructors Constructor Description JUnit5RiderTestContext(DataSetExecutor executor, org.junit.jupiter.api.extension.ExtensionContext extensionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginTransaction()voidclearEntityManager()voidcommit()<T extends Annotation>
TgetClassAnnotation(Class<T> clazz)<T extends Annotation>
TgetMethodAnnotation(Class<T> clazz)StringgetMethodName()voidrollback()-
Methods inherited from class com.github.database.rider.core.AbstractRiderTestContext
getAnnotation, getDataSetExecutor
-
-
-
-
Constructor Detail
-
JUnit5RiderTestContext
public JUnit5RiderTestContext(DataSetExecutor executor, org.junit.jupiter.api.extension.ExtensionContext extensionContext)
-
-
Method Detail
-
getMethodName
public String getMethodName()
-
getMethodAnnotation
public <T extends Annotation> T getMethodAnnotation(Class<T> clazz)
-
getClassAnnotation
public <T extends Annotation> T getClassAnnotation(Class<T> clazz)
-
commit
public void commit() throws SQLException- Throws:
SQLException
-
beginTransaction
public void beginTransaction() throws SQLException- Throws:
SQLException
-
rollback
public void rollback() throws SQLException- Throws:
SQLException
-
clearEntityManager
public void clearEntityManager()
-
-