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

Incorrect app instances loaded when multiple instances running during Spring Boot tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 3.0.19.Final
    • None
    • None
    • Hide
      1. Checkout sample github project
      2. Run the tests using the JUnit starter from IntelliJ (see pictures in README description on github)
      3. Third test fails
      Show
      Checkout sample github project Run the tests using the JUnit starter from IntelliJ (see pictures in README description on github) Third test fails

      Summary of issue:
      I have a simple REST resource which I test using Spring Boot, and these tests load an instance of the application on a random open port. The resource is implemented in Resteasy using the resteasy-spring boot library. During the tests, there are two instances started, and some rest clients make calls against the resource.

      The issue occurs when the third tests executes, the cause of which seems to come from the fact that somehow Resteasy is loading the incorrect instance of the application, which has a different application context.

      I have created a sample project on github to illustrate the issue, and also created a stackoverflow issue, which up until today, despite offering a high bounty, has not been answered yet.

      Please also check the documentation in the README file as shown on the main page of the github project, since it also contains more details.

      Let me know how further I can contribute to assist in solving the issue.

            rhn-support-asoldano Alessio Soldano
            gabriel.ruiu Gabriel Ruiu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: