Netbeans junit tests

41 views
Skip to first unread message

elliot

unread,
Dec 28, 2012, 12:40:19 PM12/28/12
to ve...@googlegroups.com
Hi all,

Having a few issue with setting up the junit-annotations in a Netbeans Maven project and was wondering if anyone had a few pointers  Error received:

java.lang.NullPointerException
    at java.io.File.<init>(File.java:251)
    at org.vertx.java.test.junit.VertxJUnit4ClassRunner.beforeAll(VertxJUnit4ClassRunner.java:57)
    at org.vertx.java.test.junit.JUnit4ClassRunnerAdapter.run(JUnit4ClassRunnerAdapter.java:85)
    at org.vertx.java.test.junit.VertxJUnit4ClassRunner.run(VertxJUnit4ClassRunner.java:20)
    at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
    at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
    at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
    at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)

I assume this has something to do with VertxJUnit4ClassRunner.class not being found, or something to do with something else, but any help would be appreciated!

E

Pid *

unread,
Dec 30, 2012, 3:47:11 AM12/30/12
to ve...@googlegroups.com
Can you post the test code?

How have you configured the test in Netbeans?


p


E

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/vertx/-/LXXqCXNRmPQJ.
To post to this group, send an email to ve...@googlegroups.com.
To unsubscribe from this group, send email to vertx+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/vertx?hl=en-GB.
Reply all
Reply to author
Forward
0 new messages