Class TemplateDecoratorRule
java.lang.Object
org.elasticsearch.cluster.metadata.TemplateDecoratorRule
- All Implemented Interfaces:
org.junit.rules.TestRule
TestRule to manage initialization of TemplateDecoratorProvider.TEMPLATE_DECORATOR.-
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) static TemplateDecoratorRuleTest rule that initializesTemplateDecoratorProvider.TEMPLATE_DECORATORwith the default provider.static TemplateDecoratorRulereset()Test rule that resetsTemplateDecoratorProvider.TEMPLATE_DECORATORwithout re-initializing it.
-
Method Details
-
reset
Test rule that resetsTemplateDecoratorProvider.TEMPLATE_DECORATORwithout re-initializing it. -
initDefault
Test rule that initializesTemplateDecoratorProvider.TEMPLATE_DECORATORwith the default provider. -
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
-