Annotation Type ExpectMaxQueryExecutionTime


  • @Retention(RUNTIME)
    @Target({METHOD,TYPE})
    public @interface ExpectMaxQueryExecutionTime
    The ExpectMaxQueryExecutionTime annotation verifies the query execution time is not greater than the specified value. If so, the test will fail.

    Example:

          @ExpectMaxQueryExecutionTime(thresholdInMilliSeconds = 2)
          public void execute() {
              ..
          }
     
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int thresholdInMilliSeconds
      Specifies a value (integer) to cause test method to fail if any query has a greater execution time.
    • Element Detail

      • thresholdInMilliSeconds

        int thresholdInMilliSeconds
        Specifies a value (integer) to cause test method to fail if any query has a greater execution time. Note that if left empty, the assumed value will be zero.
        Default:
        0