Class TestUtilSpring

java.lang.Object
org.jboss.resteasy.utils.TestUtilSpring

public class TestUtilSpring extends Object
Base util class for RESTEasy spring related testing.
  • 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

      public static String getResteasySpringVersion()
      Returns the version of this project to test with via the property version.test.org.jboss.resteasy.spring. Note an empty or null value 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 of true or an empty string will enable this feature. All other values are treated as false.

      Returns:
      true if the dependencies should be included