Class IntegrationTestFilter

java.lang.Object
com.github.seregamorph.testsmartcontext.IntegrationTestFilter

public class IntegrationTestFilter extends Object
Integration Test class filter that should be ordered (as they use spring context). The logic of this class can be customized via
 META-INF/services/com.github.seregamorph.testsmartcontext.IntegrationTestFilter
 
defining subtype of this class overriding methods.
Author:
Sergey Chernov
  • Constructor Details

    • IntegrationTestFilter

      protected IntegrationTestFilter()
  • Method Details

    • getInstance

      public static IntegrationTestFilter getInstance()
    • isIntegrationTest

      protected boolean isIntegrationTest(Class<?> testClass)
      Returns true if testClass is a Spring integration test class
      Parameters:
      testClass -
      Returns:
    • isIntegrationTestJUnit4

      protected boolean isIntegrationTestJUnit4(Class<?> testClass)
      This method should be only called if JUnit4 is on the classpath
    • isIntegrationTestJUnit5Jupiter

      protected boolean isIntegrationTestJUnit5Jupiter(Class<?> testClass)
      This method should be only called if JUnit5 Jupiter API is on the classpath