Class EmbeddedTomcatFactory
java.lang.Object
com.github.mjeanroy.junit.servers.tomcat.AbstractEmbeddedTomcatFactory<EmbeddedTomcat>
com.github.mjeanroy.junit.servers.tomcat10.EmbeddedTomcatFactory
Static factories for
EmbeddedTomcat that can be used in JUnit 4 Runner implementation
or JUnit Jupiter Extension.-
Method Summary
Modifier and TypeMethodDescriptionstatic EmbeddedTomcatcreateFrom(Class<?> testClass) Instantiate embedded tomcat from given test class.static EmbeddedTomcatcreateFrom(Class<?> testClass, AbstractConfiguration configuration) Instantiate embedded tomcat from given test class, with given provided configuration (may benull).protected EmbeddedTomcatprotected EmbeddedTomcatMethods inherited from class com.github.mjeanroy.junit.servers.tomcat.AbstractEmbeddedTomcatFactory
instantiateFrom, instantiateFrom
-
Method Details
-
createFrom
Instantiate embedded tomcat from given test class.- Parameters:
testClass- The test class.- Returns:
- Created embedded tomcat instance.
-
createFrom
Instantiate embedded tomcat from given test class, with given provided configuration (may benull).- Parameters:
testClass- The test class.configuration- The configuration to use, may benull.- Returns:
- Created embedded tomcat instance.
-
instantiateFrom
- Specified by:
instantiateFromin classAbstractEmbeddedTomcatFactory<EmbeddedTomcat>
-
instantiateFrom
- Specified by:
instantiateFromin classAbstractEmbeddedTomcatFactory<EmbeddedTomcat>
-