Women in Technology

Hear us Roar



Article:
  Using JUnit With Eclipse IDE
Subject:   helped a lot
Date:   2007-09-16 23:54:31
From:   java_sushil
it was helped me a lot to start to write a junit test cases..
Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • junit.framework.AssertionFailedError: No tests found in package name.classname
    2007-11-06 22:42:14  ajay_maheshwari [View]

    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)