SAP ABAP Class CL_TUT_TEST (Treasury Unit Test Utility)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   TR (Application Component) Treasury
     FTR_UTILS_CORE (Package) Utilities: Treasury and Risk Management
Properties
Class CL_TUT_TEST  
Short Description Treasury Unit Test Utility    
Super Class    
Instantiability of a Class 1  Protected 
Final    
General Data
Message Class    
Program status     
Category 0   
Package FTR_UTILS_CORE   Utilities: Treasury and Risk Management 
Created 20130830   SAP 
Last change 20131127   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 CX_TRBA_ROOT Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
Interfaces
Class CL_TUT_TEST has no interface implemented.
Friends
Class CL_TUT_TEST has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_PARAM_CONF_SCEN_TDC Constant Protected Type reference (TYPE) ETP_NAME 'CONFIG_SCEN_TDC' Parameter for TDC of config. scenario 20130830
2 GC_PARAM_CONF_SCEN_VARIANT Constant Protected Type reference (TYPE) ETP_NAME 'CONFIG_SCEN_VARIANT' Parameter for variant of config scenario 20130830
3 GC_PARAM_DB_TDC Constant Protected Type reference (TYPE) ETP_NAME 'DB_IMAGE_TDC' Parameter for TDC of DB Image 20130830
4 GC_PARAM_DB_VARIANT Constant Protected Type reference (TYPE) ETP_NAME 'DB_IMAGE_VARIANT' Parameter for Variant of DB Image 20130830
5 GC_PARAM_EXCEPTIONS Constant Protected Type reference (TYPE) ETP_NAME 'EXCEPTIONS' Parameter for Exceptions 20130830
6 GC_PARAM_KEY_TO_TEST Constant Protected Type reference (TYPE) ETP_NAME 'KEY_TO_TEST' Parameter for Keys of DB image to test 20130830
7 GC_PARAM_METHOD_TO_TEST Constant Protected Type reference (TYPE) ETP_NAME 'METHOD_TO_TEST' Parameter for Method to be Tested 20130830
8 GC_PARAM_SIM_CONFIG Constant Protected Type reference (TYPE) ETP_NAME 'SIMULATED_CONFIG' Parameter for Simulated Configuration 20130830
9 GC_PARAM_SIM_NR_RANGE Constant Protected Type reference (TYPE) ETP_NAME 'SIMULATED_NR_RANGE' Parameter for Simulated Number Ranges 20130830
10 GC_PARAM_SIM_PERS_CLASS Constant Protected Type reference (TYPE) ETP_NAME 'SIMULATED_PERS_CLASS' Parameter for Simulated Pers. Classes 20130830
11 GC_PARID_TDC_TRACE Constant Public Type reference (TYPE) MEMORYID 'ZTR_TDC_TRACE' Personal Parameter ID for creating TDC 20130830
12 GO_TRACE Static Attribute Protected Object reference (TYPE REF TO) CL_TUT_TEST Treasury Unit Test Utility 20130830
13 MO_CLASS_DESCR Instance attribute Protected Object reference (TYPE REF TO) CL_ABAP_CLASSDESCR Class Descriptor 20130830
14 MO_OO_TRANSACTION Instance attribute Protected Object reference (TYPE REF TO) IF_OS_TRANSACTION Interface for Transaction Objects 20130830
15 MO_TDC Instance attribute Protected Object reference (TYPE REF TO) CL_APL_ECATT_TDC_API Test Data Container 20130830
16 MTS_REPL_AGENT Instance attribute Protected See coding Replacing Agents 20130830
17 MT_CLASS_2_TEST Instance attribute Protected See coding Persistent Classes Under Test 20130830
18 MT_EXCEPTION_ACT Instance attribute Protected Type reference (TYPE) CX_TRBA_ROOT=>TY_T_ROOT Actual Exceptions 20130830
19 MT_METHOD_PARAM Instance attribute Protected See coding Method Parameters 20130830
20 MT_PARAM_2_TEST Instance attribute Protected Type reference (TYPE) ABAP_PARMBIND_TAB Parameters to be Tested 20130830
21 MT_SIM_CONFIG Instance attribute Protected Type reference (TYPE) TY_T_SIM_CONFIG Simulated Configuration 20130830
22 MT_SIM_PARAM Instance attribute Protected Type reference (TYPE) ABAP_PARMBIND_TAB Parameters to be Simulated 20130830
23 MT_SIM_PERS_CLASS Instance attribute Protected Type reference (TYPE) TY_T_SIM_PERS_CLASS Simulated Persistent Classes 20130830
24 MT_TEST_DATA Instance attribute Protected Type reference (TYPE) ETPAR_REF_TABTYPE Content of Test Data Container 20130830
25 MV_CLASS_NAME Instance attribute Protected Type reference (TYPE) SEOCLSNAME Main Class Under Test 20130830
26 MV_IS_CLASS_METHOD Instance attribute Protected Type reference (TYPE) ABAP_BOOL Is Class Method 20130830
27 MV_METHOD_NAME Instance attribute Protected Type reference (TYPE) SEOCMPNAME Method Under Test 20130830
28 MV_TDC_ID Instance attribute Protected Type reference (TYPE) ETOBJ_NAME eCATT Object 20130830
29 MV_VARIANT Instance attribute Protected Type reference (TYPE) ETVAR_ID Variant Name 20130830
Methods
# Method Level Visibility Method type Description Created on
1 ASSERT_EQUAL Static method Public Method wraps CL_AUNIT_ASSERT=>ASSERT_EQUAL 20130830
2 COLLECT_RESULTS Instance method Protected Method collects results to be checked 20130830
3 COMPARE_EXCEPTIONS Instance method Protected Method compares exceptions 20130830
4 CREATE_VARIANT Instance method Protected Method creates variant ID 20130830
5 DETERMINE_CLASSES_2_TEST Instance method Protected Method determines persistent classes to be tested 20130830
6 DETERMINE_METHOD_UNDER_TEST Instance method Protected Method determines method under test 20130830
7 DETERMINE_PARAM_2_TEST Instance method Protected Method determines parameters to be tested 20130830
8 DETERMINE_SIM_CONFIG Instance method Protected Method determines simulated configuration 20130830
9 DETERMINE_SIM_MAIN_CLASS Instance method Protected Method determines before image of main test class 20130830
10 DETERMINE_SIM_NR_RANGE Instance method Protected Method determines simulated number ranges 20130830
11 DETERMINE_SIM_PARAM Instance method Protected Method determines input parameters to be simulated 20130830
12 DETERMINE_SIM_PERS_CLASS Instance method Protected Method determines simulated persistent classes 20130830
13 END Instance method Protected Method ends test 20130830
14 EVALUATE Instance method Public Method evaluates test 20130830
15 EVALUATE_VARIANT Instance method Protected Method evaluates results of the variant 20130830
16 EXECUTE_TEST_METHOD Instance method Protected Method executes test method 20130830
17 GET_ALL_INSTANCES Instance method Public Method gets instances of given class 20130917
18 GET_CLASS_DESCRIPTOR Instance method Protected Method gets descriptor of class under test 20130830
19 GET_OBJECT_INSTANCE Instance method Protected Method gets instance of object under test 20130830
20 GET_REPLACING_AGENT Instance method Protected Method gets replacing agent 20130830
21 GET_TEST_ENVIRONMENT Static method Public Method gets test environment 20130830
22 HANDLE_ERROR Static method Protected Method handles error 20130830
23 INTERPRET_TEST_DATA Instance method Protected Method interpret data of test data container 20130830
24 LOAD_SIM_CLASS Instance method Protected Method loads persistent classes from test data container 20130830
25 LOAD_SIM_CONFIGURATION Instance method Protected Method load simulated configuration 20130830
26 LOAD_SIM_PARAMETERS Instance method Protected Method loads simulated parameters 20130830
27 LOAD_VARIANT Instance method Public Method loads variant 20130830
28 ON_SAVE_PREPARED Instance method Protected Event handling method reacts on save prepared 20130830
29 PREPARE_TRACE Instance method Protected Method prepares trace of persistent classes 20130830
30 REGISTER_CLASSES_TO_TRACE Static method Public Method registers classes to trace 20130830
31 SETUP_VARIANT Instance method Protected Method sets up variant 20130830
32 SET_METHOD_INFO Instance method Protected Method sets infos about method and class under test 20130830
33 TEARDOWN_VARIANT Instance method Protected Method tears down variant 20130830
34 TERMINATE_TRACE Instance method Protected Method terminates the trace 20130830
35 TEST Instance method Public Method test given method 20130830
Events
Class CL_TUT_TEST has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TY_PROXY Public See coding Proxy Value 20130830 ty_proxy TYPE c LENGTH 32
2 TY_S_AGENT Protected See coding Replacing Agent 20130830 BEGIN OF ty_s_agent, class_name TYPE seoclsname, repl_agent TYPE REF TO cl_tut_agent, END OF ty_s_agent
3 TY_S_EXCEPTION Public See coding Exception in TDC format 20130830 BEGIN OF ty_s_exception, class_name TYPE seoclsname, text_id TYPE seocmpname, END OF ty_s_exception
4 TY_S_METHOD_PARAM Protected See coding Method Parameter 20130830 BEGIN OF ty_s_method_param, name TYPE abap_parmname, parm_kind TYPE abap_parmkind, is_optional TYPE abap_bool, END OF ty_s_method_param
5 TY_S_SIM_CONFIG Public See coding Information about Simulated Configuration 20130830 BEGIN OF ty_s_sim_config, class_name TYPE seoclsname, tdc_id TYPE etobj_name, variant TYPE etvar_id, table_name TYPE tabname, END OF ty_s_sim_config
6 TY_S_SIM_NR_RANGE Public See coding Information about Simulated Number Ranges 20130830 BEGIN OF ty_s_sim_nr_range, object TYPE nrobj, range TYPE nrnr, first_number TYPE int2, END OF ty_s_sim_nr_range
7 TY_S_SIM_PERS_CLASS Public See coding Infos about Simulated Persistent Class 20130830 BEGIN OF ty_s_sim_pers_class, class_name TYPE seoclsname, tdc_id TYPE etobj_name, variant TYPE etvar_id, relevant_keys TYPE ty_t_os_oid, END OF ty_s_sim_pers_class
8 TY_T_EXCEPTION Public See coding Exceptions in TDC format 20130830 ty_t_exception TYPE STANDARD TABLE OF ty_s_exception WITH DEFAULT KEY
9 TY_T_OS_OID Public See coding GUIDs (CHAR32) 20130830 ty_t_os_oid TYPE STANDARD TABLE OF os_oid WITH NON-UNIQUE DEFAULT KEY
10 TY_T_SIM_CONFIG Public See coding Informations about Simulated Configuration 20130830 ty_t_sim_config TYPE STANDARD TABLE OF ty_s_sim_config WITH DEFAULT KEY
11 TY_T_SIM_NR_RANGE Public See coding 20130830 ty_t_sim_nr_range TYPE STANDARD TABLE OF ty_s_sim_nr_range WITH DEFAULT KEY
12 TY_T_SIM_PERS_CLASS Public See coding Infos about Simulated Persistent Classes 20130830 ty_t_sim_pers_class TYPE STANDARD TABLE OF ty_s_sim_pers_class WITH NON-UNIQUE KEY class_name
Method Signatures

Method ASSERT_EQUAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_MESSAGE Call by reference Object reference (TYPE REF TO) CX_TUT Treasury Unit Test Exception 20130830
2 Importing IV_ACT Call by reference Type reference (TYPE) ANY Actual Data 20130830
3 Importing IV_EXP Call by reference Type reference (TYPE) ANY Expected Data 20130830

Method ASSERT_EQUAL on class CL_TUT_TEST has no exception.

Method COLLECT_RESULTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_EXCEPTION Call by reference Object reference (TYPE REF TO) CX_TRBA_ROOT Exception in Treasury 20130830
# Exception Resumable Description Created on
1 CX_TRBA_ROOT 20130830

Method COMPARE_EXCEPTIONS Signature

Method COMPARE_EXCEPTIONS on class CL_TUT_TEST has no parameter.
# Exception Resumable Description Created on
1 CX_TRBA_ROOT 20130830

Method CREATE_VARIANT Signature

Method CREATE_VARIANT on class CL_TUT_TEST has no parameter.
# Exception Resumable Description Created on
1 CX_ECATT 20130830

Method DETERMINE_CLASSES_2_TEST Signature

Method DETERMINE_CLASSES_2_TEST on class CL_TUT_TEST has no parameter.
Method DETERMINE_CLASSES_2_TEST on class CL_TUT_TEST has no exception.

Method DETERMINE_METHOD_UNDER_TEST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_SKIP_VARIANT Call by reference Type reference (TYPE) ABAP_BOOL Skip Variant 20130830
2 Importing IV_METHOD_NAME Call by reference Type reference (TYPE) SEOCMPNAME Method Name 20130830
# Exception Resumable Description Created on
1 CX_TRBA_ROOT 20130830

Method DETERMINE_PARAM_2_TEST Signature

Method DETERMINE_PARAM_2_TEST on class CL_TUT_TEST has no parameter.
Method DETERMINE_PARAM_2_TEST on class CL_TUT_TEST has no exception.

Method DETERMINE_SIM_CONFIG Signature

Method DETERMINE_SIM_CONFIG on class CL_TUT_TEST has no parameter.
# Exception Resumable Description Created on
1 CX_ECATT 20130830
2 CX_TRBA_ROOT 20130830

Method DETERMINE_SIM_MAIN_CLASS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CLASS_NAME Call by reference Type reference (TYPE) SEOCLSNAME Object Type Name 20130830
# Exception Resumable Description Created on
1 CX_TRBA_ROOT 20130830

Method DETERMINE_SIM_NR_RANGE Signature

Method DETERMINE_SIM_NR_RANGE on class CL_TUT_TEST has no parameter.
# Exception Resumable Description Created on
1 CX_TRBA_ROOT 20130830

Method DETERMINE_SIM_PARAM Signature

Method DETERMINE_SIM_PARAM on class CL_TUT_TEST has no parameter.
Method DETERMINE_SIM_PARAM on class CL_TUT_TEST has no exception.

Method DETERMINE_SIM_PERS_CLASS Signature

Method DETERMINE_SIM_PERS_CLASS on class CL_TUT_TEST has no parameter.
# Exception Resumable Description Created on
1 CX_TRBA_ROOT 20130830

Method END Signature

Method END on class CL_TUT_TEST has no parameter.
# Exception Resumable Description Created on
1 CX_TRBA_ROOT 20130830

Method EVALUATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_MESSAGE Call by reference Object reference (TYPE REF TO) CX_TRBA_ROOT Exception in Treasury 20130830
2 Importing IV_RESULT Call by reference Type reference (TYPE) ANY Exporting/Returning Parameter to be Compared 20130830
3 Importing IV_RESULT_NAME Call by reference Type reference (TYPE) ETP_NAME TDC Parameter Containing the Expected Result 20130830

Method EVALUATE on class CL_TUT_TEST has no exception.

Method EVALUATE_VARIANT Signature

Method EVALUATE_VARIANT on class CL_TUT_TEST has no parameter.
# Exception Resumable Description Created on
1 CX_TRBA_ROOT 20130830

Method EXECUTE_TEST_METHOD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EO_ERROR Call by reference Object reference (TYPE REF TO) CX_TRBA_ROOT Exception thrown by Test Method 20130830
2 Importing IO_CUT Call by reference Object reference (TYPE REF TO) OBJECT Class under Test 20130830
# Exception Resumable Description Created on
1 CX_TRBA_ROOT 20130830

Method GET_ALL_INSTANCES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_OBJECT Call by reference Type reference (TYPE) INDEX TABLE Objects 20130917
2 Importing IV_CLASS_NAME Call by reference Type reference (TYPE) SEOCLSNAME Class Name 20130917

Method GET_ALL_INSTANCES on class CL_TUT_TEST has no exception.

Method GET_CLASS_DESCRIPTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_CUT Call by reference Object reference (TYPE REF TO) OBJECT Instance of Class Under Test 20130830
2 Importing IV_CLASS_NAME Call by reference Type reference (TYPE) SEOCLSNAME Name of Class Under Test 20130830
# Exception Resumable Description Created on
1 CX_TRBA_ROOT 20130830

Method GET_OBJECT_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_CUT Call by reference Object reference (TYPE REF TO) OBJECT Externally Given CUT 20130830
2 Returning RO_OBJECT Value transfer Object reference (TYPE REF TO) OBJECT Class Under Test 20130830
# Exception Resumable Description Created on
1 CX_TRBA_ROOT 20130830

Method GET_REPLACING_AGENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CLASS_NAME Call by reference Type reference (TYPE) SEOCLSNAME Name of Persistent Class 20130830
2 Returning RO_AGENT Value transfer Object reference (TYPE REF TO) CL_TUT_AGENT Agent Replacing the Orginal One 20130830

Method GET_REPLACING_AGENT on class CL_TUT_TEST has no exception.

Method GET_TEST_ENVIRONMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TDC_ID Call by reference Type reference (TYPE) ETOBJ_NAME Test Data Container Describing the Test 20130830
2 Returning RO_TEST Value transfer Object reference (TYPE REF TO) CL_TUT_TEST Treasury Unit Test Utility 20130830

Method GET_TEST_ENVIRONMENT on class CL_TUT_TEST has no exception.

Method HANDLE_ERROR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_EXCEPTION Call by reference Object reference (TYPE REF TO) CX_ROOT Exception 20130830

Method HANDLE_ERROR on class CL_TUT_TEST has no exception.

Method INTERPRET_TEST_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_SKIP_VARIANT Call by reference Type reference (TYPE) ABAP_BOOL Variant is not relevant 20130830
2 Importing IV_METHOD_NAME Call by reference Type reference (TYPE) SEOCMPNAME Method Name 20130830
3 Importing IV_TEST_DATA_VARIANT Call by reference Type reference (TYPE) ETVAR_ID Variant Describing the Test 20130830
# Exception Resumable Description Created on
1 CX_ECATT 20130830
2 CX_TRBA_ROOT 20130830

Method LOAD_SIM_CLASS Signature

Method LOAD_SIM_CLASS on class CL_TUT_TEST has no parameter.
# Exception Resumable Description Created on
1 CX_ECATT 20130830
2 CX_TRBA_ROOT 20130830

Method LOAD_SIM_CONFIGURATION Signature

Method LOAD_SIM_CONFIGURATION on class CL_TUT_TEST has no parameter.
# Exception Resumable Description Created on
1 CX_ECATT 20130830
2 CX_TRBA_ROOT 20130830

Method LOAD_SIM_PARAMETERS Signature

Method LOAD_SIM_PARAMETERS on class CL_TUT_TEST has no parameter.
Method LOAD_SIM_PARAMETERS on class CL_TUT_TEST has no exception.

Method LOAD_VARIANT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CLASS_NAME Call by reference Type reference (TYPE) SEOCLSNAME Class Name 20130830
2 Importing IV_METHOD_NAME Call by reference Type reference (TYPE) SEOCMPNAME Method Name 20130830
3 Importing IV_VARIANT Call by reference Type reference (TYPE) ETVAR_ID Variant Name 20130830

Method LOAD_VARIANT on class CL_TUT_TEST has no exception.

Method ON_SAVE_PREPARED Signature

Method ON_SAVE_PREPARED on class CL_TUT_TEST has no parameter.
Method ON_SAVE_PREPARED on class CL_TUT_TEST has no exception.

Method PREPARE_TRACE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TDC_ID Call by reference Type reference (TYPE) ETOBJ_NAME Test Data Container 20130830
# Exception Resumable Description Created on
1 CX_ECATT 20130830
2 CX_TUT 20130830

Method REGISTER_CLASSES_TO_TRACE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_PARAMETER_ID Call by reference Type reference (TYPE) MEMORYID GC_PARID_TDC_TRACE SET/GET Parameter ID 20130830

Method REGISTER_CLASSES_TO_TRACE on class CL_TUT_TEST has no exception.

Method SETUP_VARIANT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_VARIANT Call by reference Type reference (TYPE) ETVAR_ID Variant Name 20130830
# Exception Resumable Description Created on
1 CX_ECATT 20130830
2 CX_TRBA_ROOT 20130830

Method SET_METHOD_INFO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_METHOD_NAME Call by reference Type reference (TYPE) SEOCMPNAME Method Name 20130830
# Exception Resumable Description Created on
1 CX_TRBA_ROOT 20130830

Method TEARDOWN_VARIANT Signature

Method TEARDOWN_VARIANT on class CL_TUT_TEST has no parameter.
# Exception Resumable Description Created on
1 CX_TRBA_ROOT 20130830

Method TERMINATE_TRACE Signature

Method TERMINATE_TRACE on class CL_TUT_TEST has no parameter.
Method TERMINATE_TRACE on class CL_TUT_TEST has no exception.

Method TEST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_CUT Call by reference Object reference (TYPE REF TO) OBJECT Class Under Test 20130830
2 Importing IV_CLASS_NAME Call by reference Type reference (TYPE) SEOCLSNAME Name of Class Under Test 20130830
3 Importing IV_METHOD_NAME Call by reference Type reference (TYPE) SEOCMPNAME Method of Class IO_CUT 20130830
4 Importing IV_VARIANT Call by reference Type reference (TYPE) ETVAR_ID Variant to Test 20130830

Method TEST on class CL_TUT_TEST has no exception.
History
Last changed by/on SAP  20131127 
SAP Release Created in