Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Unable to run Junit4 runner(Getting error ''No Runnable methods'' while running Junit4 Runner)
Unable to run Junit4 runner [message #1464078] Fri, 07 November 2014 06:42 Go to next message
Ajit Choudhari is currently offline Ajit ChoudhariFriend
Messages: 1
Registered: November 2014
Junior Member
Hi All,

I am new to eclipse.
I am preparing a data base framework .I have a suite class as following -



public class FirstSuiteRunner extends Testbase


When I run this class I am getting below error

java.lang.Exception: No runnable methods
at org.junit.runners.BlockJUnit4ClassRunner.validateInstanceMethods(
at org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(
at org.junit.runners.ParentRunner.validate(
at org.junit.runners.ParentRunner.<init>(
at org.junit.runners.BlockJUnit4ClassRunner.<init>(
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(
at org.junit.runners.model.RunnerBuilder.runners(
at org.junit.runners.model.RunnerBuilder.runners(
at org.junit.runners.Suite.<init>(
at org.junit.runners.Suite.<init>(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(
at org.junit.internal.requests.ClassRequest.getRunner(
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(

Please let me know the solution at the earliest!

Thanks in advance

Re: Unable to run Junit4 runner [message #1464829 is a reply to message #1464078] Fri, 07 November 2014 22:34 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/07/2014 12:03 AM, Ajit Choudhari wrote:
> @RunWith(Suite.class)
> @SuiteClasses
> ({LoginTest.class,})
> public class FirstSuiteRunner extends Testbase
> {
> }

This is a Java/JUnit question and not an Eclipse question.
Previous Topic:Startup Error Help?
Next Topic:EclipseLink ddlgen doesn't work in eclipse
Goto Forum:

Current Time: Sat Sep 19 12:41:52 GMT 2020

Powered by FUDForum. Page generated in 0.02714 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top