Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1430

Warp does not take superclass into account when scanning for @WarpTest

    XMLWordPrintable

    Details

    • Sprint:
      Warp Beta1, Warp Alpha4
    • Estimated Difficulty:
      Low

      Description

      Given

      @WarpTest
      @RunAsClient
      public abstract class BaseRepositoryResourceBehavior<DOMAIN extends Identifiable> {
        ...
      }
      
      @RunWith(Arquillian.class)
      public class ConferenceResourceBehaviorTestCase extends BaseRepositoryResourceBehavior<Conference> {
        ...
      }
      

      Then

      java.lang.IllegalStateException: The Warp runtime isn't initialized. You need to annotate a test class with @WarpTest in order to initialize Warp.
      	at org.jboss.arquillian.warp.Warp.initiate(Warp.java:41)
      	at org.cedj.geekseek.web.rest.core.test.integration.resource.BaseRepositoryResourceBehavior.shouldHandleMissingResource(BaseRepositoryResourceBehavior.java:61)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      

        Attachments

          Activity

            People

            Assignee:
            lfryc Lukáš Fryč (Inactive)
            Reporter:
            aslak@redhat.com Aslak Knutsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified