I'm running gwt test for my application, it's like a nightmare, got problem one after another, not sure what's going wrong.
First, I created a dummy test case:
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);
}
}
When I ran 'mvn test' this simple test failed. The error message is:
initializationError0
java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/Condition
I googled around and found out that I need to include gwt-dev in my pom, and I did that, ran the test again, now it threw error:
[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?