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_CONSTANTS

Method 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 NameDescriptionVisability
ABORTAbort test Execution due to Missing ContextPublic
CALL METHOD cl_aunit_assert=>ABORT...more details

ASSERT_BOUNDEnsure the Validity of the ReferencePublic
CALL METHOD cl_aunit_assert=>ASSERT_BOUND...more details

ASSERT_CHAR_CPEnsure that Character String Fits to Simple PatternPublic
CALL METHOD cl_aunit_assert=>ASSERT_CHAR_CP...more details

ASSERT_CHAR_NPEnsure that Character String does not fit to Simple PatternPublic
CALL METHOD cl_aunit_assert=>ASSERT_CHAR_NP...more details

ASSERT_DIFFERSEnsure Difference between 2 (Elementary) data ObjectsPublic
CALL METHOD cl_aunit_assert=>ASSERT_DIFFERS...more details

ASSERT_EQUALSEnsure Equality of 2 data ObjectsPublic
CALL METHOD cl_aunit_assert=>ASSERT_EQUALS...more details

ASSERT_EQUALS_FEnsure Approximate Consistency of 2 Numbers of Type FPublic
CALL METHOD cl_aunit_assert=>ASSERT_EQUALS_F...more details

ASSERT_EQUALS_FLOATEnsure Approximate Consistency of 2 Floating Point NumbersPublic
CALL METHOD cl_aunit_assert=>ASSERT_EQUALS_FLOAT...more details

ASSERT_INITIALEnsure that data Object has its Initial ValuePublic
CALL METHOD cl_aunit_assert=>ASSERT_INITIAL...more details

ASSERT_NOT_BOUNDEnsure Invalidity of the Reference of a Reference VariablePublic
CALL METHOD cl_aunit_assert=>ASSERT_NOT_BOUND...more details

ASSERT_NOT_INITIALEnsure that Data Object does NOT have its Initial ValuePublic
CALL METHOD cl_aunit_assert=>ASSERT_NOT_INITIAL...more details

ASSERT_SUBRCEnsure Specific Value of Return cdePublic
CALL METHOD cl_aunit_assert=>ASSERT_SUBRC...more details

ASSERT_THATEnsure that a Constraint is met by data ObjectPublic
CALL METHOD cl_aunit_assert=>ASSERT_THAT...more details

FAILReport Unconditional ErrorPublic
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.

NameLevelDescriptionInitial ValueTypeVisability
CLASSInstance AttributeLIKE
Public
CRITICALInstance AttributeLIKE
Public
FATALInstance AttributeLIKE
Public
FG_NUM_CALLEDStatic Attribute0LIKE
I
Private
METHODInstance AttributeLIKE
Public
NOInstance AttributeLIKE
Public
PROGRAMInstance AttributeLIKE
Public
RTOL_DEFAULTConstantDefault Tolerance for comparion type F'1.E-14'LIKE
F
Public
RTOL_DEFAULT_DF34ConstantDefault Tolerance for comparion type Decfloat'1.E-14'LIKE
DECFLOAT34
Public
RTOL_MINConstantMinimum Tolerance for comparsion type F'1.E-15'LIKE
F
Private
RTOL_MIN_DF34Constant'1.E-15'LIKE
DECFLOAT34
Private
TOLERABLEInstance AttributeLIKE
Public
TOLERANTInstance AttributeLIKE
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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!