03-10-2021 10:18 AM
I want to add unit tests to a global class using eclipse.
CLASS zcl_fi_edi_payext_2441 DEFINITION
PUBLIC
CREATE PUBLIC .
" some coding
ENDCLASS.
CLASS zcl_fi_edi_payext_2441 IMPLEMENTATION.
" some coding
ENDCLASS.
CLASS test DEFINITION FOR TESTING RISK LEVEL HARMLESS.
ENDCLASS.
CLASS test IMPLEMENTATION.
ENDCLASS.
But it throws the error message: "The statement CLASS ... DEFINITION ... . is unexpected"
How can I solve this issue?
Thanks in advance!
03-10-2021 11:06 AM
Hi Tom!
In ADT in Eclipse, there are a couple of tabs at the BOTTOM of the editor...
Global Class, Class--relevant Local Types, Local Types, Test Classes and Macros.
So, that's where to go to enter your test classes. 🙂
03-10-2021 11:06 AM
Hi Tom!
In ADT in Eclipse, there are a couple of tabs at the BOTTOM of the editor...
Global Class, Class--relevant Local Types, Local Types, Test Classes and Macros.
So, that's where to go to enter your test classes. 🙂
03-10-2021 12:08 PM
Exactly what I looked for thanks for sharing 🙂
If you once see that tabs you can't unsee them.
03-10-2021 11:58 AM
Hi made some videos for playing about Abap Unit.
https://blogs.sap.com/2021/02/22/abap-unit-learning-session/
03-10-2021 12:07 PM