14 Replies Latest reply: Aug 8, 2012 1:28 PM by Lukáš Fryč RSS

    Unexpectedly running tests outside container - at random

    stardestroyer Newbie

      Good time of day to you!

       

      I have a strange situation -- tests sometimes run in-container and sometimes outside container, what seems to be randomly.  The app has an initializer; when the test is run in-container, the initializer runs, then the test, everything succeeds, and junit shows green bar.  Also, stack trace (if I induce an exception to get a stack trace) shows the expected container code and the servlet code being run:

       

      ...

      at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.doGet(ServletTestRunner.java:90)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)

      ...

       

      However, that only happens about 60% of the time. The other time the test seems to be run *outside* the container, the initializer fails miserably (because it can't access JNDI and therefore the DB where it needs its configuration from) and junit shows red bar; the stack trace shows the test is NOT run inside the container.

       

      ...

      at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)

      at org.jboss.arquillian.junit.standalone.LocalTestMethodExecutor.execute(LocalTestMethodExecutor.java:53)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      ...

       

      Yet, the @Deployment stuff runs, I see the application being deployed to and the initializer running in my container logs, then the application being undeployed.  But the test does not run in those cases.  The whole thing feels like there is a race condition somewhere.

       

      I'm attaching the test case, the stack trace from a "failed" (outside-container) run, and an induced stack trace from a successful in-container run, plus my arq.xml. 

       

      I'm running:

      Websphere AS 8 (with custom WAS8 remote container adopted from remote_8 code that was posted about 6 months ago); All the Final.1.0.0 stuff, but no Maven; IBM RSA 8 (based on Eclipse); and junit 4.

       

      Can anyone answer? Or should I provide more information? Thanks in advance!

        • 1. Re: Unexpectedly running tests outside container - at random
          stardestroyer Newbie

          Ping! Can anyone help?  Despite a lot of investigation, we're no closer to resolution -- this seems to be a race condition or a random event of some sort, so I can't proceed with testing and can't really realy on the results of even the 60% of the time tests do run in container

          • 2. Re: Unexpectedly running tests outside container - at random
            Bartosz Majsak Master

            I will try to have a look at it over the weekend if it's fine with you.

            • 3. Re: Unexpectedly running tests outside container - at random
              stardestroyer Newbie

              Thanks; over the weekend would be fine with me.

              • 4. Re: Unexpectedly running tests outside container - at random
                Bartosz Majsak Master

                Got me Will got back to you asap

                • 5. Re: Unexpectedly running tests outside container - at random
                  Aslak Knutsen Master

                  Could you try Arquillian Core 1.0.3.Final-SNAPSHOT from the jboss nexus repository. I've just done a little fix that hopefully will fix this issue.

                   

                  https://repository.jboss.org/nexus/content/groups/public/

                  • 6. Re: Unexpectedly running tests outside container - at random
                    stardestroyer Newbie

                    The behavior certainly changed, but not in a good way.  Now all the tests, including CDI version of the stock Temperature converter test that was working before, are failing 100% because they're running via org.jboss.arquillian.junit.standalone.LocalTestMethodExecutor.execute rather than remotely using servlet invocation.

                    • 7. Re: Unexpectedly running tests outside container - at random
                      Aslak Knutsen Master

                      Ha.. atleast it's deterministic!

                       

                      I'm not seeing the same behavior here tho.  I'll digg a bit more

                      • 8. Re: Unexpectedly running tests outside container - at random
                        Aslak Knutsen Master

                        Could you attach the console output from -Darquillian.debug=true ?

                        • 9. Re: Unexpectedly running tests outside container - at random
                          Aslak Knutsen Master

                          didn't notice before for some strange reason.. Looking at your failed stacktrace, you're not running in 'local' mode, but rather using the non container supported version of junit.

                           

                          org.jboss.arquillian.junit.standalone.LocalTestMethodExecutor.execute(LocalTestMethodExecutor.java:53)

                           

                          For some reason you have arquillian-junit-standalone on classpath and not arquillian-junit-container.

                           

                          standalone does not pull in all the required libraries to run in container at all, and will always run on client (it's ment to be used in combination with no container setups).

                           

                          If you have both on classpath, i guess 'strange' things can happen as they both register to listen for the Test event.

                           

                          In 1.0.2 the order of which they were registered didn't matter, so it would be 'random' which of the Observers were executed first. in 1.0.3-SNAPSHOT the order of registration is fixed and is followed(not following order caused some other problems that behaves similar as this). Which would mean you have arquillian-junit-standalone first on classpath since it's always failing now.

                          • 10. Re: Unexpectedly running tests outside container - at random
                            stardestroyer Newbie

                            You're absolutely right!  I had both arquillian-junit-standalone and arquillian-junit-container on the classpath; removing standalone fixed the problem very nicely.

                             

                            Thanks, Aslak!

                            • 11. Re: Unexpectedly running tests outside container - at random
                              Anthony Patricio Master

                              Hi guys,

                              I'm hitting the exact same issue.

                              I also found the org.jboss.arquillian.junit.standalone.LocalTestMethodExecutor.execute(LocalTestMethodExecutor.java:53)

                              However now way I can find the arquillian-junit-standalone in my project, can it be hidden somewhere?

                              How did you find it?

                               

                              Thanks.

                               

                              Here is the full stacktrace

                               

                              09:21:06,673 ERROR [stderr] (http--127.0.0.1-8080-1) org.junit.ComparisonFailure: expected:<[John]> but was:<[demo]>
                              09:21:06,673 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.junit.Assert.assertEquals(Assert.java:125)
                              09:21:06,674 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.junit.Assert.assertEquals(Assert.java:147)
                              09:21:06,674 ERROR [stderr] (http--127.0.0.1-8080-1)           at com.xxxx$InitialRequestVerification.initial_state_havent_changed_yet(Task10ViewMarker3.java:150)
                              09:21:06,674 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              09:21:06,675 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              09:21:06,675 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              09:21:06,675 ERROR [stderr] (http--127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
                              09:21:06,675 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.warp.server.test.LifecycleTestDriver$LifecycleMethodExecutor.invoke(LifecycleTestDriver.java:104)
                              09:21:06,676 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
                              09:21:06,676 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              09:21:06,676 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              09:21:06,676 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              09:21:06,677 ERROR [stderr] (http--127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
                              09:21:06,677 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                              09:21:06,677 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
                              09:21:06,677 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
                              09:21:06,678 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
                              09:21:06,678 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
                              09:21:06,678 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
                              09:21:06,679 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:38)
                              09:21:06,679 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              09:21:06,680 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              09:21:06,680 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              09:21:06,680 ERROR [stderr] (http--127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
                              09:21:06,681 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                              09:21:06,681 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
                              09:21:06,682 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
                              09:21:06,682 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.warp.server.test.TestResultObserver.destroyRequestContext(TestResultObserver.java:35)
                              09:21:06,683 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              09:21:06,683 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              09:21:06,683 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              09:21:06,684 ERROR [stderr] (http--127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
                              09:21:06,684 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                              09:21:06,684 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
                              09:21:06,684 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)
                              09:21:06,685 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              09:21:06,685 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              09:21:06,685 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              09:21:06,686 ERROR [stderr] (http--127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
                              09:21:06,686 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                              09:21:06,686 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
                              09:21:06,686 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)
                              09:21:06,687 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              09:21:06,687 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              09:21:06,687 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              09:21:06,687 ERROR [stderr] (http--127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
                              09:21:06,688 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                              09:21:06,688 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
                              09:21:06,688 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
                              09:21:06,688 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              09:21:06,689 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              09:21:06,689 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              09:21:06,689 ERROR [stderr] (http--127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
                              09:21:06,689 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                              09:21:06,690 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
                              09:21:06,690 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
                              09:21:06,690 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
                              09:21:06,690 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
                              09:21:06,691 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.warp.server.test.LifecycleTestDriver.fireTest(LifecycleTestDriver.java:70)
                              09:21:06,691 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              09:21:06,691 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              09:21:06,691 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              09:21:06,692 ERROR [stderr] (http--127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
                              09:21:06,692 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                              09:21:06,692 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
                              09:21:06,692 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
                              09:21:06,693 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
                              09:21:06,693 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
                              09:21:06,693 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
                              09:21:06,693 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.warp.server.lifecycle.LifecycleManagerImpl.fireLifecycleEvent(LifecycleManagerImpl.java:48)
                              09:21:06,694 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.warp.extension.phaser.PhaserListener.executeEvents(PhaserListener.java:68)
                              09:21:06,694 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.warp.extension.phaser.PhaserListener.afterPhase(PhaserListener.java:48)
                              09:21:06,694 ERROR [stderr] (http--127.0.0.1-8080-1)           at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
                              09:21:06,695 ERROR [stderr] (http--127.0.0.1-8080-1)           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
                              09:21:06,695 ERROR [stderr] (http--127.0.0.1-8080-1)           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                              09:21:06,695 ERROR [stderr] (http--127.0.0.1-8080-1)           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
                              09:21:06,695 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
                              09:21:06,695 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
                              09:21:06,696 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
                              09:21:06,696 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
                              09:21:06,696 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
                              09:21:06,697 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.warp.server.filter.WarpFilter$1.doFilter(WarpFilter.java:94)
                              09:21:06,697 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.warp.server.filter.DoFilterCommand.executeFilterChain(DoFilterCommand.java:62)
                              09:21:06,697 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.warp.server.filter.WarpLifecycle.execute(WarpLifecycle.java:77)
                              09:21:06,697 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.warp.server.filter.WarpRequestProcessor.process(WarpRequestProcessor.java:77)
                              09:21:06,698 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.warp.server.filter.WarpFilter.doFilterWarp(WarpFilter.java:84)
                              09:21:06,698 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.warp.server.filter.WarpFilter.doFilterHttp(WarpFilter.java:70)
                              09:21:06,698 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.arquillian.warp.server.filter.WarpFilter.doFilter(WarpFilter.java:54)
                              09:21:06,699 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
                              09:21:06,699 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
                              09:21:06,699 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
                              09:21:06,699 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
                              09:21:06,700 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
                              09:21:06,700 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:154)
                              09:21:06,700 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
                              09:21:06,701 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                              09:21:06,701 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                              09:21:06,701 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
                              09:21:06,701 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
                              09:21:06,702 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
                              09:21:06,702 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
                              09:21:06,702 ERROR [stderr] (http--127.0.0.1-8080-1)           at java.lang.Thread.run(Thread.java:662)
                              


                              • 13. Re: Unexpectedly running tests outside container - at random
                                stardestroyer Newbie

                                Anthony, arquillian-junit-standalone was a jar in my workspace.  I am not using Maven, so it's easier to keep track of dependencies -- all the jars are right there in the project and are easy to control

                                 

                                For you, I'll recommend two things: first -- change the version.arquillian_core to 1.0.3, it's better; second, build your project with maven and see at the jars it downloads -- you will likely find arquillian-junit-standalone.jar present.  If it is there, you'll need to trace down its dependencies through Maven and find out which one or ones bring it in, and change it.

                                 

                                - Oleg.

                                • 14. Re: Unexpectedly running tests outside container - at random
                                  Lukáš Fryč Master

                                  Hey Anthony,

                                   

                                  the issue you are hitting is not related to this one: Warp actually executes test on both, client-side and server-side.

                                   

                                  The problem right now is that part of the test executed on client-side (ClientAction) throws exception, but server-side already failed because of failed assertion (ServerAssertion).

                                   

                                  This is Warp's bug, which throws the client-side exception and thus hidding ServerAssertion.

                                   

                                  Reported here: https://issues.jboss.org/browse/ARQ-1063