Annotation Type RunAsClient


  • @Inherited
    @Documented
    @Retention(RUNTIME)
    @Target({TYPE,METHOD})
    public @interface RunAsClient
    The run mode for a test method is determined by the @Deployment annotations member testable. By default testable is true which tells Arquillian to execute the test methods in container. If testable is set to false, Arquillian will execute the test methods on the client side.

    In some cases it is useful to run different test methods in a test class in different modes, e.g. a client method that calls a Servlet for then to verify some internal state in a in container method.

    Usage Example:

    
     @Deployment
     public static WebArchive create() {
          return ShrinkWrap.create(WebArchive.class);
     }
    
     @Test @RunAsClient
     public void shouldExecuteOnClientSide() { ... }
    
     @Test
     public void shouldExecuteInContainer() { ... }
     
    Version:
    $Revision: $
    Author:
    Aslak Knutsen