VMware {code} Community
chadmichael
Enthusiast
Enthusiast

Building Solar System Project



I'm trying to get up to speed with the plugin development kit.  Right now, I've installed the eclipse plugins and I've got the o11nplugin-solarsystem-project in eclipse.  When I try to build it, it fails apparently because the ant junit task is trying to run a testng class and it complains that there are not runnable methods.  Below is my specific build output.  Is the junit task supposed to be able to execute the testng tests? 


test:



    Running com.vmware.solarsystem.TestSolarSystemRepository


    Testsuite: com.vmware.solarsystem.TestSolarSystemRepository


    Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.048 sec


    Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.048 sec


    Testcase: initializationError took 0.003 sec


    Caused an ERROR


    No runnable methods


    java.lang.Exception: No runnable methods


    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)


BUILD FAILED



/home/chadmichael/Documents/workspace-sts-3.5.0.M2/solar_system_1/maven-build.xml:86: The following error occurred while executing this line:



/home/chadmichael/Documents/workspace-sts-3.5.0.M2/solar_system_1/o11nplugin-solarsystem-model/maven-build.xml:88: Test com.vmware.solarsystem.TestSolarSystemRepository failed


Reply
0 Kudos
4 Replies
tschoergez
Leadership
Leadership

Hi,

can you try to use the new plugin wizard that's part of the SDK to create a plugin skeleton?

The SolarSystem example is quite out of date and uses old mechanism, and it obviously is not really updated completely.

Cheers,

Joerg

Reply
0 Kudos
chadmichael
Enthusiast
Enthusiast

Are you talking about the new project wizard that is a part of the eclipse plugin?  If so, I did use that.

If you're talking about something else, I've not seen that yet.  Please point to some reference.

Reply
0 Kudos
tschoergez
Leadership
Leadership

oh, I indeed did talk about the New project wizard.

I will try to reproduce the issue in my lab. It might be a "bug" in the SDK, occuring now because of another version of JUnit used... java - JUnit: how to avoid "no runnable methods" in test utils classes - Stack Ove...

Cheers,

Joerg

Reply
0 Kudos
chadmichael
Enthusiast
Enthusiast

Yep.  Using the new project wizard in the plugin, selecting a maven project, produced a fairly standard maven built plugin project. 

Reply
0 Kudos