Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-4926

org.nuxeo.common.Environment object is not reset between test calls in a test suite

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3.1
    • Fix Version/s: 5.3.2
    • Component/s: None

      Description

      When running a suite with 2 Jetty Tests the following exception is thrown in the second test :
      08:56:54,803 WARN [Log4JLogger] Failed startup of context org.mortbay.jetty.webapp.WebAppContext@16be7ee

      {/,/tmp/NXOSGITestFramework30918163021675106441278a06069b-31822120.1//web/root.war}

      java.io.FileNotFoundException: /tmp/NXOSGITestFramework30918163021675106441278a06069b-31822120.1//web/root.war
      at org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:946)
      at org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:780)
      at org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConfiguration.java:62)
      at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:445)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
      at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
      at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
      at org.mortbay.jetty.Server.doStart(Server.java:222)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
      at org.nuxeo.runtime.jetty.JettyComponent.frameworkEvent(JettyComponent.java:238)
      at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:203)
      at org.nuxeo.runtime.test.NXRuntimeTestCase.fireFrameworkStarted(NXRuntimeTestCase.java:147)
      at org.nuxeo.runtime.test.runner.RuntimeFeature.deployTestClassBundles(RuntimeFeature.java:132)
      at org.nuxeo.runtime.test.runner.RuntimeFeature.start(RuntimeFeature.java:147)
      at org.nuxeo.runtime.test.runner.FeaturesRunner.start(FeaturesRunner.java:167)
      at org.nuxeo.runtime.test.runner.FeaturesRunner.run(FeaturesRunner.java:211)
      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mcedica Mariana Cedica
                Reporter:
                mcedica Mariana Cedica
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: