Class CdiJUnit

java.lang.Object
io.github.cdiunit.junit4.CdiJUnit

public abstract class CdiJUnit extends Object
CDI Unit supports JUnit via:
  • Constructor Details

  • Method Details

    • methodRule

      public static org.junit.rules.MethodRule methodRule()
      Creates method rule instance that manages CDI Unit.
      Returns:
      the rule instance
    • classRule

      public static org.junit.rules.TestRule classRule()
      Creates rule instance that manages CDI Unit for classes using IsolationLevel.PER_CLASS. An instance of {link CdiJUnit#methodRule} is also required.
      Returns:
      the rule instance