2018 Mar 30 9:16 AM
Hi all,
I develop some custom BOPF-based features for EHS and use ENA framework because of it's clean and useful object structure. But because of lack of documentation I can't solve easy problems like BO's actions and validations unit testing.
I get the instance of ENA class using static factory method cl_ehfnd_ena_service_mngr=>instancev2( ). But I found no possibility to mock it for unit test out-of-the-box.
Are there some good practices to test ENA or another powerfull approaches? Maybe some kind of insider information related to ENA?
Hi all,
I develop some custom BOPF-based features for EHS and use ENA framework because of it's clean and useful object structure. But because of lack of documentation I can't solve easy problems like BO's actions and validations unit testing.
I get the instance of ENA class using static factory method cl_ehfnd_ena_service_mngr=>instancev2( ). But I found no possibility to mock it for unit test out-of-the-box.
Are there some good practices to test ENA or another powerfull approaches? Maybe some kind of insider information related to ENA?
2018 Apr 04 10:44 AM
Hi Ilya,
Maybe this recent post on BOPF testing has some information for you: How to Test BOPF Actions, Determinations and Validations Using BUnit – An Introduction to the BOPF U...
2018 Apr 25 3:08 PM
Hi Egor,
Thanks, it's very helpful. But unfortunately, framework provides a very small possibility to test BOPF stuff, for example I cannot test any cross-BO requests etc. But I wrote one unit test for default date determination with it 🙂
Regards,
Ilya
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |