oghenez / mycila

Automatically exported from code.google.com/p/mycila
0 stars 0 forks source link

Method setupTest() should be static #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've tried to run the guice2 plugin sample on your wiki and got the
following error :  "Method setupTest() should be static"

I have added the following repositories in my maven pom.xml  :

<repositories>
  <repository>
    <id>mc-release</id>
    <name>mc-release</name>
    <url>http://mc-repo.googlecode.com/svn/maven2/releases</url>
    <snapshots>
        <enabled>false</enabled>
    </snapshots>
    <releases>
        <enabled>true</enabled>
    </releases>
  </repository>
</repositories>

And the dependecies :

        <dependency>
            <groupId>com.mycila.testing</groupId>
            <artifactId>mycila-testing-api</artifactId>
            <version>1.2</version>
        </dependency>
        <dependency>
            <groupId>com.mycila.testing.plugins</groupId>
            <artifactId>mycila-testing-jmock</artifactId>
            <version>1.2</version>
        </dependency>
        <dependency>
            <groupId>com.mycila.testing.plugins</groupId>
            <artifactId>mycila-testing-guice</artifactId>
            <version>1.2</version>
        </dependency>

Here is the exception stack trace : 

java.lang.Exception: Method setupTest() should be static
    at
org.junit.internal.runners.MethodValidator.validateTestMethods(MethodValidator.j
ava:67)
    at
org.junit.internal.runners.MethodValidator.validateStaticMethods(MethodValidator
.java:36)
    at
org.junit.internal.runners.MethodValidator.validateMethodsForDefaultRunner(Metho
dValidator.java:42)
    at
org.junit.internal.runners.JUnit4ClassRunner.validate(JUnit4ClassRunner.java:36)
    at
org.junit.internal.runners.JUnit4ClassRunner.<init>(JUnit4ClassRunner.java:27)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:39)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA
ccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.junit.internal.requests.ClassRequest.buildRunner(ClassRequest.java:33)
    at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:28)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestRefe
rence.java:28)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4Tes
tClassReference.java:24)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoa
der.java:40)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoad
er.java:30)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner
.java:445)
    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.jav
a:196)

Original issue reported on code.google.com by jonathan...@gmail.com on 14 Mar 2009 at 7:09

GoogleCodeExporter commented 8 years ago
Hi,

Yes it's clearly an issue. I'll fix it as soon as i have some time.

Thank you !

Original comment by mathieu....@gmail.com on 14 Mar 2009 at 9:21

GoogleCodeExporter commented 8 years ago
2.0-SNAPSHOT version has been deployed in snapshot repo at

http://mc-repo.googlecode.com/svn/maven2/snapshots/

A migration guide and documentation will follow soon...

Mat'

Original comment by mathieu....@gmail.com on 6 Apr 2009 at 1:12

GoogleCodeExporter commented 8 years ago

Original comment by mathieu....@gmail.com on 6 Apr 2009 at 1:13

GoogleCodeExporter commented 8 years ago

Original comment by mathieu....@gmail.com on 9 May 2009 at 4:51