Class FcSystemIntegrationExtension

java.lang.Object
de.xima.fc.ms.test.extension.FcTestSystemExtension
de.xima.fc.ms.test.extension.FcSystemIntegrationExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.AfterTestExecutionCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.BeforeTestExecutionCallback, org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.InvocationInterceptor, org.junit.jupiter.api.extension.ParameterResolver, org.junit.jupiter.api.extension.TestInstancePostProcessor

@Deprecated public class FcSystemIntegrationExtension extends FcTestSystemExtension
Deprecated.
A JUnit extension for system integration tests. Sets up the formcycle system, including monitor threads and an in-RAM H2 database. All starts the Weld CDI runtime, as CDI is now required for all formcycle code. The system is set up once before all tests start and shut down once all tests end, instead of setting up the system once for each test. Setup takes a significant amount of time, so this helps to reduce the total test time. Individual tests should create a new client and be independent of other tests.

You can use the following parameters in your test methods, a value will be provided by this extension:

  • IEntityContextHolder - Creates and injects a wrapper that can be used to access the entity context or to reload (close and open again) the context.
  • TestSystemInfo - Provides info about the system configuration.
  • WeldEnvironment - Gives you access to the started Weld CDI container.

Any instance fields annotated with FcSetup will have the corresponding value injected as well.

For debugging, you can set the environment variable DEBUG_SHOW_SQL to true to enable SQL statement logging.

Since:
8.0.0
Author:
XIMA MEDIA GmbH
  • Constructor Details

    • FcSystemIntegrationExtension

      public FcSystemIntegrationExtension()
      Deprecated.