• Post Reply Bookmark Topic Watch Topic
  • New Topic

TestSuite Class Files  RSS feed

 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have this Suite:


   

The case is that I have this suite in the package of the Tests, and when I try to run it. It doesnt find the .class files.

Any idea, please?

Regards, Isaac
 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The this is that it doesnt compiles for this case but, the individual tests work properly.
 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Update: This is the exact compiling error I get;



I searched on the net, and I dont find the solution...it is a mistery...

Any tip or advice, please?
 
Stephan van Hulst
Saloon Keeper
Posts: 7992
143
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are using addTestSuite() to add tests. I would tell you to use addTest() instead, but if you are using annotations to declare your tests, you should be using @SuiteClasses.
 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I discovered it before read your post. I had to add



to the class which contains the Suite and to each method.

I will try also the annotations approach
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!