CLAS CL_ABAP_UNIT_ASSERT

Source Link
Open in ADT

Home
Previous Object: CL_ABAP_UNGZIP_TEXT_STREAM
Next Object: CL_ABAP_UTCLONG

Status: RELEASED

Public
Type n1 TYPE cl_abap_unit_assert=>n1
Constant rtol_default TYPE F
Static Method abort
  IMPORTING
    msg TYPE csequence Optional
    detail TYPE csequence Optional
    quit TYPE INT1 Optional
Static Method assert_bound
  IMPORTING
    act TYPE any
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_char_cp
  IMPORTING
    act TYPE csequence
    exp TYPE csequence
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_char_np
  IMPORTING
    act TYPE csequence
    exp TYPE csequence
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_differs
  IMPORTING
    act TYPE simple
    exp TYPE simple
    tol TYPE F Optional
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_equals
  IMPORTING
    act TYPE any
    exp TYPE any
    ignore_hash_sequence TYPE ABAP_BOOL Optional
    tol TYPE F Optional
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_equals_float
  IMPORTING
    act TYPE numeric
    exp TYPE numeric
    rtol TYPE numeric Optional
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_false
  IMPORTING
    act TYPE ABAP_BOOL
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_initial
  IMPORTING
    act TYPE any Optional
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_not_bound
  IMPORTING
    act TYPE any
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_not_initial
  IMPORTING
    act TYPE any
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_number_between
  IMPORTING
    lower TYPE numeric
    upper TYPE numeric
    number TYPE numeric
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_return_code
  IMPORTING
    exp TYPE numeric
    act TYPE numeric Optional
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
    symsg TYPE SYMSG Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_subrc
  IMPORTING
    exp TYPE SYSUBRC Optional
    act TYPE SYSUBRC Optional
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
    symsg TYPE SYMSG Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_table_contains
  IMPORTING
    line TYPE any
    table TYPE STANDARD TABLE OF any WITH DEFAULT KEY
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_table_not_contains
  IMPORTING
    line TYPE any
    table TYPE STANDARD TABLE OF any WITH DEFAULT KEY
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_text_matches
  IMPORTING
    pattern TYPE csequence
    text TYPE csequence
    full TYPE ABAP_BOOL Optional
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_text_not_matches
  IMPORTING
    pattern TYPE csequence
    text TYPE csequence
    full TYPE ABAP_BOOL Optional
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_that
  IMPORTING
    act TYPE any
    act_as_text TYPE csequence Optional
    exp TYPE if_constraint
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assert_true
  IMPORTING
    act TYPE ABAP_BOOL
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
  RETURNING assertion_failed TYPE ABAP_BOOL
Static Method assume_false
  IMPORTING
    act TYPE ABAP_BOOL
    msg TYPE csequence
Static Method assume_return_code
  IMPORTING
    exp TYPE numeric
    act TYPE numeric Optional
    msg TYPE csequence
    symsg TYPE SYMSG Optional
Static Method assume_that
  IMPORTING
    act TYPE any
    act_as_text TYPE csequence Optional
    exp TYPE if_constraint
    msg TYPE csequence Optional
Static Method assume_true
  IMPORTING
    act TYPE ABAP_BOOL
    msg TYPE csequence
Static Method fail
  IMPORTING
    msg TYPE csequence Optional
    level TYPE INT1 Optional
    quit TYPE INT1 Optional
    detail TYPE csequence Optional
Static Method skip
  IMPORTING
    msg TYPE csequence
    detail TYPE csequence Optional

Exists on:
754true
750true
702true

Bug reports and ideas welcome
Made using abaplint.app