Data AccessCore JavaApp FrameworksViewTestingBuildingDeploymentDev ToolsSecurityOpinions

Tuesday, June 23, 2009

junit.framework.AssertionFailedError: No tests found in

If you ever get the above error and you think your test class is set up and implemented correctly, you may have one more thing to check.

Your test method names need to start with 'test'.

For example:

public class name extent TestCase{
public void method1() {}
public void method1() {}
}


Will result in an error. Change the method names to...

public class name extent TestCase{
public void testMethod1() {}
public void testMethod1() {}
}


You should be good to go!

41 comments:

  1. Replies
    1. IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.

      IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.

      corporate training in chennai corporate training in chennai

      corporate training companies in india corporate training companies in india

      corporate training companies in chennai corporate training companies in chennai

      I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai

      Delete
  2. Thanx a lot for this Post, it is short and very useful.

    ReplyDelete
  3. Thanks Man to usefull

    ReplyDelete
  4. helped me, easy but forgetful

    Thanks

    ReplyDelete
  5. thanks... solved my problem...

    ReplyDelete
  6. Thanks a lot!!!!!!!!!!

    ReplyDelete
  7. thanks a lot.. was stuck because of this for long.. thanks

    ReplyDelete
  8. Thanks it did worked and clarified how the test needs to run. It saved a lot of time.

    ReplyDelete
  9. Helped a lot!! Thank you so much!!!

    ReplyDelete
  10. It helped me a lot. Thank you :)

    ReplyDelete
  11. Many thanks. It finally worked!!

    ReplyDelete
  12. Thankyou this is really helping

    ReplyDelete
  13. thanks allot...saved my day....

    ReplyDelete




  14. do you want to study in abroad today or in the next intake. we are the best and top rated study abroad consultancies in india with good visa assurance usa foreign education consultants in hyderabad we help you in filing the f1 visa for you in very less time. we are also help you with information needed to apply for the college university.

    ReplyDelete
  15. It seems I'm on the right track, I hope I can do well. The result was something I did and was doing to implement it.
    http://www.clickjogosclick.com

    ReplyDelete
  16. This business presently pulls in numerous clients who have been going for broke via bearing trade wherever out the past. Check Cashing Chula vista

    ReplyDelete