私のアプリケーションにはgwtテストを実行しています。悪夢のように、次々と問題が発生しています。私はこの単純なテストが失敗した「MVNテスト」を実行したときgwt test:クラスパス上のsample.gwt.xmlを見つけることができません
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);
}
}
:
まず、私はダミーのテストケースを作成しました。エラーメッセージは次のとおりです。
:
[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?
initializationError0
java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/Condition
私の周りGoogleで検索し、私は私のポンポンでGWT-devのを含める必要があることが分かった、と私は、もう一度テストを実行したことをやった、今ではエラーを投げました