Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2894

ResteasyCdiExtension not found in Junit 5 WELD

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 3.15.1.Final
    • resteasy-extensions
    • None
    • Undefined

    Description

      **Hi, since upgrading to MP 4.0 & Resteasy 3.15.1.Final my junit tests give me:

      RESTEASY010615: Unable to obtain ResteasyCdiExtension instance.

      So, adding

      @AddExtensions(ResteasyCdiExtension.class)

      fixes this, but it seems like an error, as the resteasy-cdi dependency is present with runtime scope. Any ideas/suggestions? Thanks a ton!

      Versions

      • Resteasy 3.15.1.Final
      • microprofile-rest api 2.0
      • weld-junit5 2.0.2.Final
      • Junit 5.7.1

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            svenhaag Sven Haag (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: