Package org.faktorips.runtime.test
Class IpsTestSuiteJUnit5Adapter
- java.lang.Object
-
- org.faktorips.runtime.test.IpsTestSuiteJUnit5Adapter
-
public class IpsTestSuiteJUnit5Adapter extends java.lang.ObjectAdapter 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 Constructor Description IpsTestSuiteJUnit5Adapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.jupiter.api.DynamicTestcreateTest(IpsTestCase2 testCase)java.util.stream.Stream<org.junit.jupiter.api.DynamicTest>createTests(IpsTest2 test)
-
-
-
Method Detail
-
createTests
public java.util.stream.Stream<org.junit.jupiter.api.DynamicTest> createTests(IpsTest2 test)
-
createTest
public org.junit.jupiter.api.DynamicTest createTest(IpsTestCase2 testCase)
-
-