SAP CL_AUNIT_ASSERT OO Class - ABAP Unit: Assertions (see Longtext)
CL_AUNIT_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_AUNIT_ASSERT including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Interface Implementation
This OO class is an Interface Implementation, which means it will implement its own version of the methods from implementation class IF_AUNIT_CONSTANTSMethod list of CL_AUNIT_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_aunit_assert=>ABORT...more details | ||
ASSERT_BOUND | Ensure the Validity of the Reference | Public |
CALL METHOD cl_aunit_assert=>ASSERT_BOUND...more details | ||
ASSERT_CHAR_CP | Ensure that Character String Fits to Simple Pattern | Public |
CALL METHOD cl_aunit_assert=>ASSERT_CHAR_CP...more details | ||
ASSERT_CHAR_NP | Ensure that Character String does not fit to Simple Pattern | Public |
CALL METHOD cl_aunit_assert=>ASSERT_CHAR_NP...more details | ||
ASSERT_DIFFERS | Ensure Difference between 2 (Elementary) data Objects | Public |
CALL METHOD cl_aunit_assert=>ASSERT_DIFFERS...more details | ||
ASSERT_EQUALS | Ensure Equality of 2 data Objects | Public |
CALL METHOD cl_aunit_assert=>ASSERT_EQUALS...more details | ||
| ||
ASSERT_EQUALS_F | Ensure Approximate Consistency of 2 Numbers of Type F | Public |
CALL METHOD cl_aunit_assert=>ASSERT_EQUALS_F...more details | ||
ASSERT_EQUALS_FLOAT | Ensure Approximate Consistency of 2 Floating Point Numbers | Public |
CALL METHOD cl_aunit_assert=>ASSERT_EQUALS_FLOAT...more details | ||
ASSERT_INITIAL | Ensure that data Object has its Initial Value | Public |
CALL METHOD cl_aunit_assert=>ASSERT_INITIAL...more details | ||
ASSERT_NOT_BOUND | Ensure Invalidity of the Reference of a Reference Variable | Public |
CALL METHOD cl_aunit_assert=>ASSERT_NOT_BOUND...more details | ||
ASSERT_NOT_INITIAL | Ensure that Data Object does NOT have its Initial Value | Public |
CALL METHOD cl_aunit_assert=>ASSERT_NOT_INITIAL...more details | ||
ASSERT_SUBRC | Ensure Specific Value of Return cde | Public |
CALL METHOD cl_aunit_assert=>ASSERT_SUBRC...more details | ||
ASSERT_THAT | Ensure that a Constraint is met by data Object | Public |
CALL METHOD cl_aunit_assert=>ASSERT_THAT...more details | ||
FAIL | Report Unconditional Error | Public |
CALL METHOD cl_aunit_assert=>FAIL...more details |
CL_AUNIT_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 |
CLASS | Instance Attribute | LIKE | Public | ||
CRITICAL | Instance Attribute | LIKE | Public | ||
FATAL | Instance Attribute | LIKE | Public | ||
FG_NUM_CALLED | Static Attribute | 0 | LIKE I | Private | |
METHOD | Instance Attribute | LIKE | Public | ||
NO | Instance Attribute | LIKE | Public | ||
PROGRAM | Instance Attribute | LIKE | Public | ||
RTOL_DEFAULT | Constant | Default Tolerance for comparion type F | '1.E-14' | LIKE F | Public |
RTOL_DEFAULT_DF34 | Constant | Default Tolerance for comparion type Decfloat | '1.E-14' | LIKE DECFLOAT34 | Public |
RTOL_MIN | Constant | Minimum Tolerance for comparsion type F | '1.E-15' | LIKE F | Private |
RTOL_MIN_DF34 | Constant | '1.E-15' | LIKE DECFLOAT34 | Private | |
TOLERABLE | Instance Attribute | LIKE | Public | ||
TOLERANT | Instance Attribute | LIKE | Public |
CL_AUNIT_ASSERT types
N1 -Links to Related Class(s)
CL_AUNIT...Full list of available SAP object classes
Search for further information about these or an SAP related objects