Application Development 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: 

ADT has deleted my local ABAP test class from the class pool. NO WAY !?

Sandra_Rossi
Active Contributor
0 Kudos

I just lived a very bad experience after years using Eclipse/ADT.

I guess that I won't get any answer/nor good news, but I ask, just in case.

I had just created a class pool with a local test class, and after 15 minutes of successful runs, suddenly the unit tests were completely removed by unknown action or bug, and it got back to this empty first line.

The Eclipse cache on the laptop has also lost the source code:

When I start retyping the test class with the same name, I get this weird message that LTC_MAIN already exists.

(English translation: "It already exists a class named 'LTC_MAIN'")

(TRMSG message code MESSAGEG@A)

I get the message even if I restart Eclipse.

The message is sent by method CHECK_SOURCE of CL_SEU_ADT_CHECKABLE_HELPER:

These are the load parts where it gets the information that LTC_MAIN already exists (CLAS) and I can see my lost test methods in the load part TRIG.

More funny, I can't get rid of the LTC_MAIN class in my unit tests, which still appears although there is no more source code:

Even after using SE24 option to repair the class pool and to bulk delete all the test classes, it still appears!!!

If I look at the internal source code unit ZCL...CCAU in active and inactive mode (READ REPORT), I only see this one line above.

Did you already experience that, any clue or idea?

Thanks for reading me 😉

Environment:

  • Eclipse/ADT : 2022-12 / 1.146.0
  • ABAP 7.40 SP 23 (quite old)
1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

Stupid me.

I had created in the Macros part by mistake (first time it happens):

So, if it happens to you, look for your test classes in each of the 5 tabs 😉

Sandra

3 REPLIES 3

Sandra_Rossi
Active Contributor

Stupid me.

I had created in the Macros part by mistake (first time it happens):

So, if it happens to you, look for your test classes in each of the 5 tabs 😉

Sandra

0 Kudos

Stupid, you ?
No chance, rather a little tiredness, no ?! 😉

matt
Active Contributor

I'm just relieved. I was getting worried there!