ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Using JUnit With Eclipse IDE
Subject:   junit.framework.AssertionFailedError: No tests found in package name.classname
Date:   2007-11-06 22:42:14
From:   ajay_maheshwari
Response to: helped a lot

I am running junit test case as follow.
public class name extent TestCase{
public void method1() {}
public void method1() {}
}


getting following error


junit.framework.AssertionFailedError: No tests found in junit.framwork.test.SubscriberTestcase at junit.framework.Assert.fail(Assert.java:47) at junit.framework.TestSuite$1.runTest(TestSuite.java:93) atJunit.framework.TestCase.runBare(TestCase.java:130) atjunit.framework.TestResult$1.protect(TestResult.java:110) atjunit.framework.TestResult.runProtected(TestResult.java:128)
at Junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:228)
at junit.framework.TestSuite.run(TestSuite.java:223)
at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)



1 to 1 of 1
  1. junit.framework.AssertionFailedError: No tests found in package name.classname
    2007-12-14 02:39:02  manikandankv [View]

    • junit.framework.AssertionFailedError: No tests found in package name.classname
      2007-12-27 20:39:20  LeilaMir [View]

      • junit.framework.AssertionFailedError: No tests found in package name.classname
        2009-12-01 05:41:16  Pramy [View]

        • junit.framework.AssertionFailedError: No tests found in package name.classname
          2010-04-15 15:44:04  vmbharathi [View]

1 to 1 of 1