Class IpsTestSuiteJUnit5Adapter


  • public class IpsTestSuiteJUnit5Adapter
    extends java.lang.Object
    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 Detail

      • IpsTestSuiteJUnit5Adapter

        public IpsTestSuiteJUnit5Adapter()
    • 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)