Package org.apache.tomee.embedded.junit
Class TomEEEmbeddedRule
- java.lang.Object
-
- org.apache.tomee.embedded.junit.TomEEEmbeddedRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class TomEEEmbeddedRule extends Object implements org.junit.rules.TestRule
-
-
Constructor Summary
Constructors Constructor Description TomEEEmbeddedRule()TomEEEmbeddedRule(Configuration configuration, String context)TomEEEmbeddedRule(Configuration configuration, String context, File docBase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)ConfigurationgetConfiguration()intgetPort()TomEEEmbeddedRuleinjectOn(Object instance)TomEEEmbeddedRuleresetSystemPropertiesAfter(boolean value)TomEEEmbeddedRulestopInjectionOn(Object instance)
-
-
-
Constructor Detail
-
TomEEEmbeddedRule
public TomEEEmbeddedRule()
-
TomEEEmbeddedRule
public TomEEEmbeddedRule(Configuration configuration, String context)
-
TomEEEmbeddedRule
public TomEEEmbeddedRule(Configuration configuration, String context, File docBase)
-
-
Method Detail
-
injectOn
public TomEEEmbeddedRule injectOn(Object instance)
-
resetSystemPropertiesAfter
public TomEEEmbeddedRule resetSystemPropertiesAfter(boolean value)
-
stopInjectionOn
public TomEEEmbeddedRule stopInjectionOn(Object instance)
-
getConfiguration
public Configuration getConfiguration()
-
getPort
public int getPort()
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)- Specified by:
applyin interfaceorg.junit.rules.TestRule
-
-