0.11.0
- Add automatic module name (for Java 9 module), following module names are used:
- For
junit-server-core
:com.github.mjeanroy.junit.servers.core
- For
junit-server-jetty
:com.github.mjeanroy.junit.servers.jetty
- For
junit-server-tomcat
:com.github.mjeanroy.junit.servers.tomcat
- For
- Fix a bug when JUnit Jupiter extension was used with
RegisterExtension
but was not declared asstatic
0.10.0
- Add JUnit Jupiter integration through the
JunitServerExtension
.
0.9.0
- In order to prepare for the Junit-Jupiter extension, API related to Junit4 have been moved to a dedicated package, old classes have been deprecated. Note that you can continue to use it, but it will be removed in a next release. Note that documentation is up to date, and Javadoc should explain what to use instead of the deprecated class.
The following changes should be applied:
-
Replace
com.github.mjeanroy.junit.servers.runner.JunitServerRunner
withcom.github.mjeanroy.junit.servers.junit4.JunitServerRunner
. - Replace
com.github.mjeanroy.junit.servers.jetty.rules.JettyServerRule
withcom.github.mjeanroy.junit.servers.jetty.junit4.JettyServerRule
. - Replace
com.github.mjeanroy.junit.servers.jetty.JettyServerJunit4Runner
withcom.github.mjeanroy.junit.servers.jetty.junit4.JettyServerJunit4Runner
. -
Replace
com.github.mjeanroy.junit.servers.jetty.utils.AbstractJettyTest
withcom.github.mjeanroy.junit.servers.jetty.junit4.AbstractJettyTest
. - Replace
com.github.mjeanroy.junit.servers.tomcat.rules.TomcatServerRule
withcom.github.mjeanroy.junit.servers.tomcat.junit4.TomcatServerRule
. - Replace
com.github.mjeanroy.junit.servers.tomcat.JettyServerJunit4Runner
withcom.github.mjeanroy.junit.servers.tomcat.junit4.JettyServerJunit4Runner
. - Replace
com.github.mjeanroy.junit.servers.tomcat.utils.AbstractTomcatTest
withcom.github.mjeanroy.junit.servers.tomcat.junit4.AbstractTomcatTest
.
0.8.0
- The server implementation detection now use the Service Provider API available in the JDK and it should now be easier for anyone to implement and use custom implementation (instead of Jetty/Tomcat).
- Introduce
com.github.mjeanroy.junit.servers.jetty.JettyServerJunit4Runner
to be able to force jetty without using the service provider API. - Introduce
com.github.mjeanroy.junit.servers.tomcat.TomcatServerJunit4Runner
to be able to force jetty without using the service provider API. - Some internal refactoring in order to prepare the future junit-jupiter extension.
0.7.0
- Add compatibility for Java 9: some methods have been deprecated as supporting it with Java 9 was impossible (due to changes on classloader API).
- Various dependency updates, mainly used in unit tests.
0.6.1
Core
-
In version 0.6.0, visibility of method
EmbeddedTomcat#createContext
went fromprotected
toprivate
. This was a breaking change and it has been reverted (see issues #7). The method has been deprecated since visibility may be changed to private again (as it should have been at the beginning). If this is a problem, please submit an issue to discuss it. -
Method
AbstractConfigurationBuilder#withParentClasspath(Class<?> baseClass, FileFilter filter)
(introduced in 0.5.0) has been deprecated. With JDK9, the application classloader does not inherit fromURLClassLoader
, so it become (almost) impossible to derive a newURLClassLoader
from it by filtering some classpath entries. This method has been deprecated as it will become useless once JDK9 compatibility will be implemented. If this is a problem, please submit an issue to discuss it.
0.6.0
Features
- Servers
- #ba89a9a allow preserving tomcat base directory on server stop (thanks @grzegorzt!).
- Http Client
Fix
- Servers
- #114c17c Rules now inherits from JUnit
ExternalResource
.
- #114c17c Rules now inherits from JUnit
- Http Client
Core
- Ensure JDK7 compatibility with
animal-sniffer-maven-plugin
. - Various maven plugin updates.
- Improve Javadocs.
0.5.0
Features
- Add new options to the server configuration builder (see #6a9015e).
- Add
withOverrideDescriptor
to allow overriding the path to theweb.xml
file. - Add
withParentClasspath
to allow override parent classpath of the deployed webapp (may be useful to add JAR from a directory).
- Add
Fix
- Add missing default configuration for embedded jetty (see #8ec08d9).
- Add
WebInfConfiguration
. - Add
MetaInfConfiguration
.
- Add
Core
- Various dependency updates:
- Embedded tomcat: 8.0.17 to 8.0.44
- Test dependencies (commons-lang3, spring).
- Dev dependencies (apache http-client, ning async-http-client).
- Maven plugin updates.
- Add continuous integration on travis.