In JUnit 4, we can use:
@RunWith(ActiveObjectsJUnitRunner.class)
@Jdbc
public abstract class AbstractAtlassianTest {
// auto filled by ActiveObjectsJUnitRunner
protected EntityManager entityManager;
protected ActiveObjects ao;
@Test
public void testSomethingWithActiveObjects() { ...
This is explained in Atlassian’s tutorial, which is necessary to test anyone’s plugins with the 4 DBMS. The dependency is activeobjects-tests.
JUnit 5 removed @RunWith
, and replaced with extensions / @ExtendWith(...)
, but I don’t see any class provided by JUnit.
Is there an annotation such as @ExtendWith(ActiveObjectsExtension.class)
for JUnit 5?