SAP ABAP Class CL_ABAP_UNIT_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

⤷

⤷

Properties
Class | CL_ABAP_UNIT_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 | 20081201 | 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) |
3 | ![]() |
Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
Interfaces
Class CL_ABAP_UNIT_ASSERT has no interface implemented.
Friends
# | Friend | Modeled only | Created on | Description |
---|---|---|---|---|
1 | _IF_AUNIT_FRIEND_TO_ASSERT | 20081216 | INTERNAL: Tagging interface |
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Static Attribute | Private | Type reference (TYPE) | I | 0 | Number of Invocations | 20081216 | |
2 | ![]() |
Constant | Public | Type reference (TYPE) | F | '1.E-14' | Default Tolerance for comparion type F | 20081216 | |
3 | ![]() |
Constant | Private | Type reference (TYPE) | F | '1.E-15' | Minimum Tolerance for comparsion type F | 20081216 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Static method | Public | Method | Abort test execution due to missing context | 20081216 |
2 | ![]() |
Static method | Public | Method | Ensure the validity of the reference | 20081216 |
3 | ![]() |
Static method | Public | Method | Ensure that character string fits to simple pattern | 20081216 |
4 | ![]() |
Static method | Public | Method | Ensure that character string does not fit to simple pattern | 20081216 |
5 | ![]() |
Static method | Public | Method | Ensure difference between 2 elementary data objects | 20081216 |
6 | ![]() |
Static method | Public | Method | Ensure equality of two data objects | 20081216 |
7 | ![]() |
Static method | Public | Method | Ensure approximate consistency of 2 floating point numbers | 20081216 |
8 | ![]() |
Static method | Public | Method | Ensure that boolean equals ABAP_FALSE | 20120130 |
9 | ![]() |
Static method | Public | Method | Ensure that data object value is initial | 20081216 |
10 | ![]() |
Static method | Public | Method | Ensure invalidity of the reference of a reference variable | 20081216 |
11 | ![]() |
Static method | Public | Method | Ensure that value of data object is not initial | 20081216 |
12 | ![]() |
Static method | Public | Method | Ensure that number is in given range | 20081216 |
13 | ![]() |
Static method | Public | Method | Ensure specific value of return code | 20081216 |
14 | ![]() |
Static method | Public | Method | Ensure that data is contained as line within internal table | 20081216 |
15 | ![]() |
Static method | Public | Method | Ensure that data is not contained as line in internal table | 20120128 |
16 | ![]() |
Static method | Public | Method | Ensure that text matches regular expression | 20081216 |
17 | ![]() |
Static method | Public | Method | Ensure that a constraint is met by data object | 20081216 |
18 | ![]() |
Static method | Public | Method | Ensure that boolean equals ABAP_TRUE | 20120130 |
19 | ![]() |
Static method | Public | Method | Report unconditional assertion | 20081216 |
Events
Class CL_ABAP_UNIT_ASSERT has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | N1 | Public | See coding | 20081216 | 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 | Further description | 20081216 | ||
2 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
3 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>CLASS | Alter control flow/ quit test (METHOD, >>>CLASS<<<) | 20081216 |
Method ABORT on class CL_ABAP_UNIT_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 | Reference variable to be checked | 20081216 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
3 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, CRITICAL, FATAL) | 20081216 | |
4 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
5 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 |
Method ASSERT_BOUND on class CL_ABAP_UNIT_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 | Text to match to EXP pattern | 20081216 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
3 | ![]() |
EXP | Call by reference | Type reference (TYPE) | CSEQUENCE | Expected simple text pattern | 20081216 | ||
4 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, CRITICAL, FATAL) | 20081216 | |
5 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 |
Method ASSERT_CHAR_CP on class CL_ABAP_UNIT_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 | Actual text which shall not adhere to EXP pattern | 20081216 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
3 | ![]() |
EXP | Call by reference | Type reference (TYPE) | CSEQUENCE | Simple text pattern | 20081216 | ||
4 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, CRITICAL, FATAL) | 20081216 | |
5 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 |
Method ASSERT_CHAR_NP on class CL_ABAP_UNIT_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 | Data object with current value | 20081216 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
3 | ![]() |
EXP | Call by reference | Type reference (TYPE) | SIMPLE | Compare object with unexpected value | 20081216 | ||
4 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, CRITICAL, FATAL) | 20081216 | |
5 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Message in case of error | 20081216 | ||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 | |
7 | ![]() |
TOL | Call by reference | Type reference (TYPE) | F | Tolerance range for floating point comparison | 20081216 |
Method ASSERT_DIFFERS on class CL_ABAP_UNIT_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 | Data object with current value | 20081216 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
3 | ![]() |
EXP | Call by reference | Type reference (TYPE) | ANY | Data object with expected type | 20081216 | ||
4 | ![]() |
IGNORE_HASH_SEQUENCE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Ignore sequence in hash tables | 20081216 | |
5 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, CRITICAL, FATAL) | 20081216 | |
6 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
7 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 | |
8 | ![]() |
TOL | Call by reference | Type reference (TYPE) | F | Tolerance Range (for directly passed floating numbers) | 20081216 |
Method ASSERT_EQUALS on class CL_ABAP_UNIT_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 | Data object with current value | 20081216 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
3 | ![]() |
EXP | Call by reference | Type reference (TYPE) | NUMERIC | Data object with expected value | 20081216 | ||
4 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, CRITICAL, FATAL) | 20081216 | |
5 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 | |
7 | ![]() |
RTOL | Call by reference | Type reference (TYPE) | NUMERIC | CL_ABAP_UNIT_ASSERT=>RTOL_DEFAULT | Relative tolerance | 20081216 |
Method ASSERT_EQUALS_FLOAT on class CL_ABAP_UNIT_ASSERT has no exception.
Method ASSERT_FALSE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Call by reference | Type reference (TYPE) | ABAP_BOOL | Actual data object | 20120130 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20120130 | ||
3 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, >CRITICAL<, FATAL) | 20120130 | |
4 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20120130 | ||
5 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20120130 |
Method ASSERT_FALSE on class CL_ABAP_UNIT_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 | SY-SUBRC | Actual data object | 20081216 | |
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
3 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, >CRITICAL<, FATAL) | 20081216 | |
4 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
5 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 |
Method ASSERT_INITIAL on class CL_ABAP_UNIT_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 | Reference variable to be checked | 20081216 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
3 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, >CRITICAL<, FATAL) | 20081216 | |
4 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
5 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 |
Method ASSERT_NOT_BOUND on class CL_ABAP_UNIT_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 | Actual Data Object | 20081216 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
3 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, >CRITICAL<, FATAL) | 20081216 | |
4 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Message in Case of Error | 20081216 | ||
5 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 |
Method ASSERT_NOT_INITIAL on class CL_ABAP_UNIT_ASSERT has no exception.
Method ASSERT_NUMBER_BETWEEN Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
2 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 | |
3 | ![]() |
LOWER | Call by reference | Type reference (TYPE) | NUMERIC | Upper Boundary | 20081216 | ||
4 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
5 | ![]() |
NUMBER | Call by reference | Type reference (TYPE) | NUMERIC | Number exepected to LOWER <= NUMBER <= UPPER | 20081216 | ||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Control flow in case of failed assertion | 20081216 | |
7 | ![]() |
UPPER | Call by reference | Type reference (TYPE) | NUMERIC | Lower Boundary | 20081216 |
Method ASSERT_NUMBER_BETWEEN on class CL_ABAP_UNIT_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 | SY-SUBRC | Return code of ABAP statements | 20081216 | |
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
3 | ![]() |
EXP | Value transfer | Type reference (TYPE) | SYSUBRC | 0 | Expected return code, optional, if not zero | 20081216 | |
4 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, >CRITICAL<, FATAL) | 20081216 | |
5 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 | |
7 | ![]() |
SYMSG | Call by reference | Type reference (TYPE) | SYMSG | System message | 20081216 |
Method ASSERT_SUBRC on class CL_ABAP_UNIT_ASSERT has no exception.
Method ASSERT_TABLE_CONTAINS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
2 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, >CRITICAL<, FATAL) | 20081216 | |
3 | ![]() |
LINE | Call by reference | Type reference (TYPE) | ANY | Data Object that is typed like line of TABLE | 20081216 | ||
4 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
5 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 | |
6 | ![]() |
TABLE | Call by reference | Type reference (TYPE) | ANY TABLE | Internal Table that shall contain LINE | 20081216 |
Method ASSERT_TABLE_CONTAINS on class CL_ABAP_UNIT_ASSERT has no exception.
Method ASSERT_TABLE_NOT_CONTAINS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20120128 | ||
2 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, >CRITICAL<, FATAL) | 20120128 | |
3 | ![]() |
LINE | Call by reference | Type reference (TYPE) | ANY | Data Object that is typed like line of TABLE | 20120128 | ||
4 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20120128 | ||
5 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20120128 | |
6 | ![]() |
TABLE | Call by reference | Type reference (TYPE) | ANY TABLE | Internal Table that must not contain LINE | 20120128 |
Method ASSERT_TABLE_NOT_CONTAINS on class CL_ABAP_UNIT_ASSERT has no exception.
Method ASSERT_TEXT_MATCHES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
2 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, >CRITICAL<, FATAL) | 20081216 | |
3 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
4 | ![]() |
PATTERN | Call by reference | Type reference (TYPE) | CSEQUENCE | Regular Expression - see also TA ABAPHELP | 20081216 | ||
5 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 | |
6 | ![]() |
TEXT | Call by reference | Type reference (TYPE) | CSEQUENCE | Text that is assumed to met the regular expression | 20081216 |
Method ASSERT_TEXT_MATCHES on class CL_ABAP_UNIT_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 | Data Object which should adhere to constraint EXP | 20081216 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20081216 | ||
3 | ![]() |
EXP | Call by reference | Object reference (TYPE REF TO) | IF_CONSTRAINT | Constraint to which ACT needs to adhere | 20081216 | ||
4 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, >CRITICAL<, FATAL) | 20081216 | |
5 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
6 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 |
Method ASSERT_THAT on class CL_ABAP_UNIT_ASSERT has no exception.
Method ASSERT_TRUE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ACT | Call by reference | Type reference (TYPE) | ABAP_BOOL | Actual value | 20120130 | ||
2 | ![]() |
ASSERTION_FAILED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Condition was not met (and QUIT = NO) | 20120130 | ||
3 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, >CRITICAL<, FATAL) | 20120130 | |
4 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20120130 | ||
5 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20120130 |
Method ASSERT_TRUE on class CL_ABAP_UNIT_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 | Further Description | 20081216 | ||
2 | ![]() |
LEVEL | Call by reference | Type reference (TYPE) | AUNIT_LEVEL | IF_AUNIT_CONSTANTS=>CRITICAL | Severity (TOLERABLE, >CRITICAL<, FATAL) | 20081216 | |
3 | ![]() |
MSG | Call by reference | Type reference (TYPE) | CSEQUENCE | Description | 20081216 | ||
4 | ![]() |
QUIT | Call by reference | Type reference (TYPE) | AUNIT_FLOWCTRL | IF_AUNIT_CONSTANTS=>METHOD | Alter control flow/ quit test (NO, >METHOD<, CLASS) | 20081216 |
Method FAIL on class CL_ABAP_UNIT_ASSERT has no exception.
History
Last changed by/on | SAP | 20140121 |
SAP Release Created in | 720 |