Class IntegrationTestFilter
java.lang.Object
com.github.seregamorph.testsmartcontext.IntegrationTestFilter
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.IntegrationTestFilterdefining subtype of this class overriding methods.
- Author:
- Sergey Chernov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegrationTestFilterprotected booleanisIntegrationTest(Class<?> testClass) Returns true if testClass is a Spring integration test classprotected booleanisIntegrationTestJUnit4(Class<?> testClass) This method should be only called if JUnit4 is on the classpathprotected booleanisIntegrationTestJUnit5Jupiter(Class<?> testClass) This method should be only called if JUnit5 Jupiter API is on the classpath
-
Constructor Details
-
IntegrationTestFilter
protected IntegrationTestFilter()
-
-
Method Details
-
getInstance
-
isIntegrationTest
Returns true if testClass is a Spring integration test class- Parameters:
testClass-- Returns:
-
isIntegrationTestJUnit4
This method should be only called if JUnit4 is on the classpath -
isIntegrationTestJUnit5Jupiter
This method should be only called if JUnit5 Jupiter API is on the classpath
-