Package dev.enola.common.context.testlib
Class TestTLCRule
java.lang.Object
dev.enola.common.context.testlib.TestTLCRule
- All Implemented Interfaces:
org.junit.rules.TestRule
- Direct Known Subclasses:
TestContextRule
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTestTLCRule(ImmutableMap<Context.Key<?>, ?> pushes, boolean ignore) TestTLCRule(ImmutableMap<Class<?>, ?> pushes) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter()final org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) protected voidbefore()static <T> TestTLCRuleof(Context.Key<T> klass, T instance) static <T> TestTLCRule
-
Constructor Details
-
TestTLCRule
-
TestTLCRule
-
-
Method Details
-
of
-
of
-
apply
public final org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-
before
-
after
-