Skip to Content
0
Mar 10, 2021 at 10:18 AM

How to add Unit Test Class to global Class in Eclipse?

80 Views

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!