gwt-test: nicht zu finden sample.gwt.xml auf Ihrem classpath

Ich bin mit gwt-test für meine Anwendung, es ist wie ein Albtraum, habe ein problem nach dem anderen, nicht sicher, was falsch läuft.

Ersten, habe ich mir eine dummy-test-Fall:

public class ListItemTest extends GWTTestCase {

  /**
   * Specifies a module to use when running this test case. The returned
   * module must include the source for this class.
   * 
   * @see com.google.gwt.junit.client.GWTTestCase#getModuleName()
   */
    @Override
    public String getModuleName() {
        return "com.dyihi.services.sample.Sample";
    }

    /**
     * Add as many tests as you like
     */
    public void testSimple() {
        assertTrue(true);
    }
}

Als ich lief 'mvn test" dieser einfache test ist fehlgeschlagen. Die Fehlermeldung ist:

initializationError0
java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/Condition

Habe ich gegoogelt um und fand heraus, dass ich brauche zu gehören gwt-dev in meinem pom, und das habe ich gemacht, lief den test erneut aus, nun warf Fehler:

[ERROR] Unable to find 'Sample.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

InformationsquelleAutor user468587 | 2010-12-28
Schreibe einen Kommentar