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

Warp: declarative approach - @Inspect and @Observe

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Optional
    • warp_1_next
    • warp_1.0.0.Alpha2
    • Extension - Warp
    • None

    Description

      /**
           * Filters can be specified by annotation - then they will be applied in any
           * Warp execution where no other filter was specified.
           */
          @Observe(RequestToObserve.class)
          public void testFilterSpecifiedByAnnotation() {
              Warp
                  .execute(clientAction)
                  .verify(serverAssertion);
          }
      
          /**
           * Assertions can be specified by annotation - all specified assertions
           * will be used for all requests.
           */
          @Inspect({Inspection1.class, Inspection2.class})
          public void testSpecifyAssertionByAnnotation() {
              clientAction.action();
          }
      

      https://github.com/arquillian/arquillian-extension-warp/blob/master/api/src/test/java/org/jboss/arquillian/warp/TestExecutionAPI.java#L150

      Attachments

        Activity

          People

            Unassigned Unassigned
            lfryc Lukáš Fryč (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: