Mocking-Frameworks in ABAP Objects
I believe that the SCN has an enormous creative potential. We use to discuss our ideas online and scetch up ideas on Programming in weblogs.
SAP introduces for about several years the ABAP Unit-Framework to support unit-testing in ABAP.
To this time I thougth it would be also an announcement of an supporting Mocking-Framework.
… But noting happens 😕
Every Time I use ABAP Unit I decide If I should write Handwritten-Mocks or not. And sometimes the result is to do it not, because of lack of time.
A lot of Programmers think in the same direction and some Blogs are also published on SCN.
They are a lot of interesting Topics around Mocking in ABAP Objects:
- http://scn.sap.com/community/abap/application-development/objects/blog/2012/11/16/unit-tests-in-abap-using-a-mocking-framework
- http://www.g3it.com/blog/technical/abap/adopting-test-driven-development-using-abap-unit/
- http://scn.sap.com/people/stephen.pfeiffer/blog/2010/08/19/managing-dependencies-in-tdd-constructor-injection-in-abap-in-ehp1
A lot of Blogs help to understand how an Framework could or should work to develop an Mocking-Framework:
- http://scn.sap.com/people/achim.bangert/blog/2006/08/02/dynamic-proxies-in-abap (Part I to IV.)
- http://code.google.com/p/abap-di/
Of course, we could also start an open-source- (code-exchange-) project for an mocking-framework (Yes they exist the Project aMock https://cw.sdn.sap.com/cw/groups/amock , but no progress is visible…) but maybe SAP could support with an Standard-Mocking-Framework?
I´ve heard about an new created Standard-Framework for SAP HANA, maybe it is possible to down-port it to lower SAP-NetWeaver Releases?
What do you think?
Can someone post information where to find infos about that SAP HANA Framework?
Thanks
Stefan
Hi Stefan,
personally I don´t have such Information...
Last Year, I saw an Chinese-Blog with Code-Snippets on the Web, but this Blog was delted after some Months.
Maybe an SAP Employee could give some Links?
Cheers,
Damir