Annotation Type ExpectInsert


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface ExpectInsert
    The ExpectInsert annotation verifies the number of executed insert statements corresponds to the specified value.

    Example:

          @ExpectInsert(6)
          public void execute_six_insert() {
              ..
          }
     
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int value
      Specifies a value (integer) to cause test method to fail if the number of insert statements is not equal.
    • Element Detail

      • value

        int value
        Specifies a value (integer) to cause test method to fail if the number of insert statements is not equal. Note that if left empty, the assumed value will be one.
        Default:
        1