Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

TDD - Abap

Former Member
0 Likes
1,009

Hi Collegues,

I am new in Abap Development and I am trying to "port" some of my Agile Knowledges within this new world.

The Abap Unit framework implementation of xUnit is a good point to start.

A unit test is Unit if:

- there is no db connection

- it does no work with network

- etc.

I know, more depends by the way and intention of unit test, but mock an object is really useful.

Is there a way to create mock object in Abap? Something like EasyMock.

Thanks for your replies.

Regards,

Mirco.

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
849

There is nothing, you must develop the whole concept.

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
0 Likes
850

There is nothing, you must develop the whole concept.

Read only

0 Likes
849

hi Sandra,

thanks a lot for your useful reply.

Regards,

Mirco.

Read only

former_member183804
Active Contributor
0 Likes
849

Hello Mirco,

as Sandra already told there is no automatic support for test doubles yet. All you can do is to write stubs, spies and mocks on your own.

BTW: As in ABAP you get the DB connection for free, the definition for a Unit Test does not apply in full extend.

Best Regards

Klaus