Class LongRunningIntegrationTest
- java.lang.Object
-
- org.junit.rules.TestWatcher
-
- org.springframework.amqp.rabbit.junit.LongRunningIntegrationTest
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class LongRunningIntegrationTest extends org.junit.rules.TestWatcherRule to prevent long running tests from running on every build; set environment variable RUN_LONG_INTEGRATION_TESTS on a CI nightly build to ensure coverage.- Since:
- 1.2.1
- Author:
- Gary Russell, Artem Bilan
-
-
Field Summary
Fields Modifier and Type Field Description static StringRUN_LONG_INTEGRATION_TESTS
-
Constructor Summary
Constructors Constructor Description LongRunningIntegrationTest()LongRunningIntegrationTest(String property)Check using a custom variable/property name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description)booleanisShouldRun()Return true if the test should run.
-
-
-
Field Detail
-
RUN_LONG_INTEGRATION_TESTS
public static final String RUN_LONG_INTEGRATION_TESTS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LongRunningIntegrationTest
public LongRunningIntegrationTest()
-
LongRunningIntegrationTest
public LongRunningIntegrationTest(String property)
Check using a custom variable/property name.- Parameters:
property- the variable/property name.- Since:
- 2.0.2
-
-
Method Detail
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)- Specified by:
applyin interfaceorg.junit.rules.TestRule- Overrides:
applyin classorg.junit.rules.TestWatcher
-
isShouldRun
public boolean isShouldRun()
Return true if the test should run.- Returns:
- true to run.
-
-