Package org.faktorips.runtime.test
Class IpsTestSuiteJUnit5Adapter
java.lang.Object
org.faktorips.runtime.test.IpsTestSuiteJUnit5Adapter
Adapter between JUnit 5 test suites and Faktor-IPS test suites.
Code example to show how the adapter can be integrated:
import org.junit.jupiter.api.DynamicTest;
import org.junit.jupiter.api.TestFactory;
public class HomeInsuranceJUnitTest extends IpsTestSuiteJUnit5Adapter {
@TestFactory
public Stream<DynamicTest> getTests() {
IRuntimeRepository repository = [...];
return createTests(repository.getIpsTest(""));
}
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.jupiter.api.DynamicTestcreateTest(IpsTestCase2 testCase) Stream<org.junit.jupiter.api.DynamicTest>createTests(IpsTest2 test)
-
Constructor Details
-
IpsTestSuiteJUnit5Adapter
public IpsTestSuiteJUnit5Adapter()
-
-
Method Details
-
createTests
-
createTest
-