Package org.jboss.resteasy.utils
Class TestUtilSpring
java.lang.Object
org.jboss.resteasy.utils.TestUtilSpring
Base util class for RESTEasy spring related testing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddSpringLibraries(org.jboss.shrinkwrap.api.spec.WebArchive archive) Adds Spring libraries and its dependencies into webarchovestatic voidaddSpringLibraries(org.jboss.shrinkwrap.api.spec.WebArchive archive, String... additionalDeps) Adds Spring libraries and its dependencies into webarchovestatic StringReturns the version of this project to test with via the propertyversion.test.org.jboss.resteasy.spring.static booleanIndicates whether the RESTEasy Spring dependencies should be included in the deployment or as a module.
-
Constructor Details
-
TestUtilSpring
public TestUtilSpring()
-
-
Method Details
-
addSpringLibraries
public static void addSpringLibraries(org.jboss.shrinkwrap.api.spec.WebArchive archive) Adds Spring libraries and its dependencies into webarchove- Parameters:
archive-
-
addSpringLibraries
public static void addSpringLibraries(org.jboss.shrinkwrap.api.spec.WebArchive archive, String... additionalDeps) Adds Spring libraries and its dependencies into webarchove- Parameters:
archive-
-
getResteasySpringVersion
Returns the version of this project to test with via the propertyversion.test.org.jboss.resteasy.spring. Note an empty ornullvalue will result in an error.- Returns:
- the version of this project to test with
-
includeResteasySpring
public static boolean includeResteasySpring()Indicates whether the RESTEasy Spring dependencies should be included in the deployment or as a module.This value is controlled by the system property
include.resteasy.spring. A value oftrueor an empty string will enable this feature. All other values are treated asfalse.- Returns:
trueif the dependencies should be included
-