SAP CL_ABAP_UNIT_ASSERT OO Class - ABAP Unit: Assertions (see Longtext)
CL_ABAP_UNIT_ASSERT is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_ABAP_UNIT_ASSERT including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Method list of CL_ABAP_UNIT_ASSERT SAP class
A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.
Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...
Method Name | Description | Visability |
ABORT | Abort test execution due to missing context | Public |
CALL METHOD cl_abap_unit_assert=>ABORT...more details | ||
ASSERT_BOUND | Ensure the validity of the reference | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_BOUND...more details | ||
ASSERT_CHAR_CP | Ensure that character string fits to simple pattern | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_CHAR_CP...more details | ||
ASSERT_CHAR_NP | Ensure that character string does not fit to simple pattern | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_CHAR_NP...more details | ||
ASSERT_DIFFERS | Ensure that data objects have distinct values | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_DIFFERS...more details | ||
ASSERT_EQUALS | Ensure equality of two data objects | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_EQUALS...more details | ||
| ||
ASSERT_EQUALS_FLOAT | Ensure approximate consistency of 2 floating point numbers | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_EQUALS_FLOAT...more details | ||
ASSERT_FALSE | Ensure that boolean equals ABAP_FALSE | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_FALSE...more details | ||
ASSERT_INITIAL | Ensure that data object value is initial | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_INITIAL...more details | ||
ASSERT_NOT_BOUND | Ensure invalidity of the reference of a reference variable | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_NOT_BOUND...more details | ||
ASSERT_NOT_INITIAL | Ensure that value of data object is not initial | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_NOT_INITIAL...more details | ||
ASSERT_NUMBER_BETWEEN | Ensure that number is in given range | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_NUMBER_BETWEEN...more details | ||
ASSERT_SUBRC | Ensure specific value of return code | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_SUBRC...more details | ||
ASSERT_TABLE_CONTAINS | Ensure that data is contained as line within internal table | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_TABLE_CONTAINS...more details | ||
ASSERT_TABLE_NOT_CONTAINS | Ensure that data is not contained as line in internal table | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_TABLE_NOT_CONTAINS...more details | ||
ASSERT_TEXT_MATCHES | Ensure that text matches regular expression | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_TEXT_MATCHES...more details | ||
ASSERT_THAT | Ensure that a constraint is met by data object | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_THAT...more details | ||
ASSERT_TRUE | Ensure that boolean equals ABAP_TRUE | Public |
CALL METHOD cl_abap_unit_assert=>ASSERT_TRUE...more details | ||
FAIL | Report unconditional assertion | Public |
CALL METHOD cl_abap_unit_assert=>FAIL...more details |
CL_ABAP_UNIT_ASSERT attributes
List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.
Name | Level | Description | Initial Value | Type | Visability |
FG_NUM_CALLED | Static Attribute | Number of Invocations | 0 | LIKE I | Private |
RTOL_DEFAULT | Constant | Default Tolerance for comparion type F | '1.E-14' | LIKE F | Public |
RTOL_MIN | Constant | Minimum Tolerance for comparsion type F | '1.E-15' | LIKE F | Private |
CL_ABAP_UNIT_ASSERT types
N1 -Links to Related Class(s)
CL_ABAP_...Full list of available SAP object classes
Search for further information about these or an SAP related objects