Ich starte gwt test für meine Anwendung, es ist wie ein Albtraum, habe ein Problem nach dem anderen, nicht sicher, was schief läuft.gwt test: sample.gwt.xml kann nicht in Ihrem Klassenpfad gefunden werden
Zuerst habe ich einen Dummy-Testfall:
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 diesen einfache Test nicht bestanden 'mvn test' lief. Die Fehlermeldung lautet:
initializationError0
java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/Condition
Ich googeln um und fand heraus, dass ich GWT-dev in meinem pom, und ich habe aufnehmen müssen, dass Sie den Test erneut lief, jetzt ist es Fehler warf:
[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?