SAP ABAP Class CL_AUNIT_ASSERT (ABAP Unit: Assertions (see Longtext))
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-DWB-TOO-UT (Application Component) ABAP Unit
⤷
SABP_UNIT_CORE_API (Package) ABAP Unit: Public API

⤷

⤷

Meta Relationship - Using
# | Relationship type | Using | Short Description | Created on |
---|---|---|---|---|
1 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_AUNIT_CONSTANTS | ABAP Unit: Constants for test API | 20030725 |
Meta Relationship - Used By
# | Relationship type | Used by | Short Description | Created on |
---|---|---|---|---|
1 | Inheritance (c INHERITING FROM c_ref) | CL_WER_ASSERTS | Assert methods | 20070209 |
2 | Inheritance (c INHERITING FROM c_ref) | CL_HDS_AUNIT | Top-Level Node of (Almost) All HDS Test Classes | 20050309 |
3 | Inheritance (c INHERITING FROM c_ref) | CL_LOG_TRM_INT_UTILITIES_AU | ABAP Unit Tests for LOG2TRM Integration Utilities | 20121128 |
4 | Inheritance (c INHERITING FROM c_ref) | CL_LOG_TRM_MM_CONTRACT_RDP_AU | ABAP Unit Tests for Risk Distribution Plans in MM | 20120301 |
5 | Inheritance (c INHERITING FROM c_ref) | CL_MMPUR_2014_AUNIT | ABAP Unit Test for BAPIs of Function Group 2014 | 20050822 |
6 | Inheritance (c INHERITING FROM c_ref) | CL_PRODUCT_AUNIT_ASSERT | Assert Enhancement for COM Product PC UI | 20050104 |
7 | Inheritance (c INHERITING FROM c_ref) | CL_PXN_AU_MIGRATION | Test migration | 20120706 |
8 | Inheritance (c INHERITING FROM c_ref) | CL_RSDRC_INFOPROV_TEST | ABAP UNIT Test Cases for RSDRC_INFOPROV | 20040206 |
9 | Inheritance (c INHERITING FROM c_ref) | CL_SATC_CM_CHECK_MODULE_TEST | Abstract Test Class for CheckMan Adapters | 20070824 |
10 | Inheritance (c INHERITING FROM c_ref) | CL_FOBU_UNITTEST | Unit test for formula builder | 20100624 |
... | Click here to see Used By full list (36 items) |
Properties
Class | CL_AUNIT_ASSERT | |
Short Description | ABAP Unit: Assertions (see Longtext) | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | S | System Program |
Category | 0 | |
Package | SABP_UNIT_CORE_API | ABAP Unit: Public API |
Created | 20030725 | SAP |
Last change | 20140121 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
2 | ![]() |
Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
Interfaces
# | Interface | Abstract | Final | Description | Created on |
---|---|---|---|---|---|
1 | IF_AUNIT_CONSTANTS | ABAP Unit: Constants for test API | 20030725 |
Friends
# | Friend | Modeled only | Created on | Description |
---|---|---|---|---|
1 | _IF_AUNIT_FRIEND_TO_ASSERT | 20070627 | INTERNAL: Tagging interface |
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Instance attribute | Public | Attribute reference (LIKE) | 20030725 | ||||
2 | ![]() |
Instance attribute | Public | Attribute reference (LIKE) | 20030725 | ||||
3 | ![]() |
Instance attribute | Public | Attribute reference (LIKE) | 20030725 | ||||
4 | ![]() |
Static Attribute | Private | Type reference (TYPE) | I | 0 | Number of Invocations | 20070404 | |
5 | ![]() |
Instance attribute | Public | Attribute reference (LIKE) | 20030725 | ||||
6 | ![]() |
Instance attribute | Public | Attribute reference (LIKE) | 20030730 | ||||
7 | ![]() |
Instance attribute | Public | Attribute reference (LIKE) | 20030904 | ||||
8 | ![]() |
Constant | Public | Type reference (TYPE) | F | '1.E-14' | Default Tolerance for comparion type F | 20040528 | |
9 | ![]() |
Constant | Public | Type reference (TYPE) | DECFLOAT34 | '1.E-14' | Default Tolerance for comparion type Decfloat | 20060329 | |
10 | ![]() |
Constant | Private | Type reference (TYPE) | F | '1.E-15' | Minimum Tolerance for comparsion type F | 20040528 | |
11 | ![]() |
Constant | Private | Type reference (TYPE) | DECFLOAT34 | '1.E-15' | Minimum Tolerance for comparsion type F | 20060329 | |
12 | ![]() |
Instance attribute | Public | Attribute reference (LIKE) | 20040402 | ||||
13 | ![]() |
Instance attribute | Public | Attribute reference (LIKE) | 20030725 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Static method | Public | Method | Abort test Execution due to Missing Context | 20040305 |
2 | ![]() |
Static method | Public | Method | Ensure the Validity of the Reference | 20030725 |
3 | ![]() |
Static method | Public | Method | Ensure that Character String Fits to Simple Pattern | 20031022 |
4 | ![]() |
Static method | Public | Method | Ensure that Character String does not fit to Simple Pattern | 20031022 |
5 | ![]() |
Static method | Public | Method | Ensure Difference between 2 (Elementary) data Objects | 20040506 |
6 | ![]() |
Static method | Public | Method | Ensure Equality of 2 data Objects | 20030725 |
7 | ![]() |
Static method | Public | Method | Ensure Approximate Consistency of 2 Numbers of Type F | 20040518 |
8 | ![]() |
Static method | Public | Method | Ensure Approximate Consistency of 2 Floating Point Numbers | 20060329 |
9 | ![]() |
Static method | Public | Method | Ensure that data Object has its Initial Value | 20030725 |
10 | ![]() |
Static method | Public | Method | Ensure Invalidity of the Reference of a Reference Variable | 20030725 |
11 | ![]() |
Static method | Public | Method | Ensure that Data Object does NOT have its Initial Value | 20030725 |
12 | ![]() |
Static method | Public | Method | Ensure Specific Value of Return cde | 20040517 |
13 | ![]() |
Static method | Public | Method | Ensure that a Constraint is met by data Object | 20080123 |
14 | ![]() |
Static method | Public | Method | Report Unconditional Error | 20030725 |
Events
Class CL_AUNIT_ASSERT has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | N1 | Public | See coding | 20040518 | n1 type n length 1
|
Method Signatures
Method ABORT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
DETAIL | Call by reference | Type reference (TYPE) | CSEQUENCE | Detailnachricht | 20040305 | ||
2 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Fehlermeldung | 20040305 | ||
3 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | CL_AUNIT_ASSERT=>CLASS | Flusskontrolle im Fehlerfall | 20040513 |
Method ABORT on class CL_AUNIT_ASSERT has no exception.
Method ASSERT_BOUND Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Call by reference | Type reference (TYPE) | ANY | zur prüfende Referenzvariable | 20030725 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Bedingung verletzt | 20041215 | ||
3 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | CRITICAL | Fehlerschwere | 20030725 | |
4 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Fehlermeldung | 20030725 | ||
5 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | METHOD | Flusskontrolle im Fehlerfall | 20030728 |
Method ASSERT_BOUND on class CL_AUNIT_ASSERT has no exception.
Method ASSERT_CHAR_CP Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Call by reference | Type reference (TYPE) | CSEQUENCE | Tatsächliches Objekt | 20031022 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Bedingung verletzt | 20041215 | ||
3 | ![]() |
EXP | Call by reference | Type reference (TYPE) | CSEQUENCE | Erwartetes Muster | 20031022 | ||
4 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | CRITICAL | Fehlerschwere | 20031022 | |
5 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Nachricht im Fehlerfall | 20031022 | ||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | METHOD | Flusskontrolle im Fehlerfall | 20031022 |
Method ASSERT_CHAR_CP on class CL_AUNIT_ASSERT has no exception.
Method ASSERT_CHAR_NP Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Call by reference | Type reference (TYPE) | CSEQUENCE | Tatsächliches Objekt | 20031022 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Bedingung verletzt | 20041215 | ||
3 | ![]() |
EXP | Call by reference | Type reference (TYPE) | CSEQUENCE | Nicht erwartetes Muster | 20031022 | ||
4 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | CRITICAL | Fehlerschwere | 20031022 | |
5 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Nachricht im Fehlerfall | 20031022 | ||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | METHOD | Flusskontrolle im Fehlerfall | 20031022 |
Method ASSERT_CHAR_NP on class CL_AUNIT_ASSERT has no exception.
Method ASSERT_DIFFERS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Call by reference | Type reference (TYPE) | SIMPLE | Datenobjekt mit aktuellem Wert | 20040506 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Bedingung verletzt | 20041215 | ||
3 | ![]() |
EXP | Call by reference | Type reference (TYPE) | SIMPLE | Vergleichsobjekt mit unerwartetem Wert | 20040506 | ||
4 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | CRITICAL | Fehlerschwere | 20040506 | |
5 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Nachricht im Fehlerfall | 20040506 | ||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | METHOD | Flusskontrolle im Fehlerfall | 20040506 | |
7 | ![]() |
TOL | Call by reference | Type reference (TYPE) | F | Toleranzbereich für Gleitkommazahlen | 20040506 |
Method ASSERT_DIFFERS on class CL_AUNIT_ASSERT has no exception.
Method ASSERT_EQUALS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Call by reference | Type reference (TYPE) | ANY | Datenobjekt mit akutellem Wert | 20030725 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Bedingung verletzt | 20041215 | ||
3 | ![]() |
EXP | Call by reference | Type reference (TYPE) | ANY | Datenobjekt mit erwartetem Wert | 20030725 | ||
4 | ![]() |
IGNORE_HASH_SEQUENCE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | geänderte Reihenfolge in Hashtabellen ignorieren | 20050114 | |
5 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | CRITICAL | Fehlerschwere | 20030725 | |
6 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Nachricht im Fehlerfall | 20030725 | ||
7 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | METHOD | Flusskontrolle im Fehlerfall | 20030725 | |
8 | ![]() |
TOL | Call by reference | Type reference (TYPE) | F | Toleranzbereich für Gleitkommazahlen | 20030725 |
Method ASSERT_EQUALS on class CL_AUNIT_ASSERT has no exception.
Method ASSERT_EQUALS_F Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Call by reference | Type reference (TYPE) | F | Datenobjekt mit akutellem Wert | 20040518 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Bedingung verletzt | 20041215 | ||
3 | ![]() |
EXP | Call by reference | Type reference (TYPE) | F | Datenobjekt mit erwartetem Wert | 20040518 | ||
4 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | CRITICAL | Fehlerschwere | 20040518 | |
5 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Nachricht im Fehlerfall | 20040518 | ||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | METHOD | Flusskontrolle im Fehlerfall | 20040518 | |
7 | ![]() |
RTOL | Call by reference | Type reference (TYPE) | F | CL_AUNIT_ASSERT=>RTOL_DEFAULT | Relative Toleranz | 20040528 |
Method ASSERT_EQUALS_F on class CL_AUNIT_ASSERT has no exception.
Method ASSERT_EQUALS_FLOAT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Call by reference | Type reference (TYPE) | NUMERIC | 20060329 | |||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20060329 | |||
3 | ![]() |
EXP | Call by reference | Type reference (TYPE) | NUMERIC | 20060329 | |||
4 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | CRITICAL | Einstufungsgrad eines ABAP Unit Prüffehlers | 20060329 | |
5 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | 20060329 | |||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | METHOD | Flusskontrolle im Fehlerfall | 20060329 | |
7 | ![]() |
RTOL | Call by reference | Type reference (TYPE) | NUMERIC | CL_AUNIT_ASSERT=>RTOL_DEFAULT | 20060329 |
Method ASSERT_EQUALS_FLOAT on class CL_AUNIT_ASSERT has no exception.
Method ASSERT_INITIAL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Call by reference | Type reference (TYPE) | ANY | Tatsächliches Objekt | 20030725 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Bedingung verletzt | 20041215 | ||
3 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | CRITICAL | Fehlerschwere | 20030725 | |
4 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Nachricht im Fehlerfall | 20030725 | ||
5 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | METHOD | Flusskontrolle im Fehlerfall | 20030728 |
Method ASSERT_INITIAL on class CL_AUNIT_ASSERT has no exception.
Method ASSERT_NOT_BOUND Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Call by reference | Type reference (TYPE) | ANY | zur prüfende Referenzvariable | 20030725 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Bedingung verletzt | 20041215 | ||
3 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | CRITICAL | Fehlerschwere | 20030725 | |
4 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Fehlermeldung | 20030725 | ||
5 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | METHOD | Flusskontrolle im Fehlerfall | 20030728 |
Method ASSERT_NOT_BOUND on class CL_AUNIT_ASSERT has no exception.
Method ASSERT_NOT_INITIAL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Call by reference | Type reference (TYPE) | ANY | Tatsächliches Objekt | 20030725 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Bedingung verletzt | 20041215 | ||
3 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | CRITICAL | Fehlerschwere | 20030725 | |
4 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Nachricht im Fehlerfall | 20030725 | ||
5 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | METHOD | Flusskontrolle im Fehlerfall | 20030728 |
Method ASSERT_NOT_INITIAL on class CL_AUNIT_ASSERT has no exception.
Method ASSERT_SUBRC Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Value transfer | Type reference (TYPE) | SYSUBRC | tatsächlicher Returncode-Wert sy-subrc | 20040517 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Bedingung nicht erfüllt | 20041215 | ||
3 | ![]() |
EXP | Value transfer | Type reference (TYPE) | SYSUBRC | 0 | erwarteter Returncode, optional, falls nicht null | 20040517 | |
4 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | CRITICAL | Fehlerschwere | 20040517 | |
5 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Nachricht im Fehlerfall | 20040517 | ||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | METHOD | Flusskontrolle im Fehlerfall | 20040517 | |
7 | ![]() |
SYMSG | Call by reference | Type reference (TYPE) | SYMSG | System Message | 20070901 |
Method ASSERT_SUBRC on class CL_AUNIT_ASSERT has no exception.
Method ASSERT_THAT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Call by reference | Type reference (TYPE) | DATA | 20080125 | |||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20080123 | |||
3 | ![]() |
EXP | Call by reference | Object reference (TYPE REF TO) | IF_CONSTRAINT | Bedingung für ein Datenobjekt | 20080125 | ||
4 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | CRITICAL | Einstufungsgrad eines ABAP Unit Prüffehlers | 20080123 | |
5 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | 20080123 | |||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | METHOD | Flusskontrolle im Fehlerfall | 20080123 |
Method ASSERT_THAT on class CL_AUNIT_ASSERT has no exception.
Method FAIL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
DETAIL | Call by reference | Type reference (TYPE) | CSEQUENCE | Detailnachricht | 20031009 | ||
2 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | CRITICAL | Fehlerschwere | 20030725 | |
3 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Fehlermeldung | 20030725 | ||
4 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | METHOD | Flusskontrolle im Fehlerfall | 20030725 |
Method FAIL on class CL_AUNIT_ASSERT has no exception.
Meta Relationship - Used By (full list)
History
Last changed by/on | SAP | 20140121 |
SAP Release Created in |