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!

23 comments:

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

    ReplyDelete
  2. Thanks Man to usefull

    ReplyDelete
  3. helped me, easy but forgetful

    Thanks

    ReplyDelete
  4. thanks... solved my problem...

    ReplyDelete
  5. Thanks a lot!!!!!!!!!!

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

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

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

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

    ReplyDelete
  10. Many thanks. It finally worked!!

    ReplyDelete
  11. Thankyou this is really helping

    ReplyDelete
  12. thanks allot...saved my day....

    ReplyDelete




  13. 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
  14. 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
  15. 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