Monday, November 1, 2010

Re: Cannot found source in GWT Project

Hi Eric,

I have a project with two source directories, src/ and test/ that also
refers to the JUnit 4 library. The test/ directory refers to classes
in JUnit, and these references cause the "can not be found" errors.

I reproduced it by creating a new GWT project, adding the JUnit
library, and referring to JUnit classes from the client/ directory.
Here's the project structure:

src/pkg/Foo.gwt.xml
src/pkg/client/Foo.java
test/pkg/client/FooTest.java

FooTest.java looks like this:

package pkg.client;

import org.junit.runner.RunWith;
import org.junit.runners.Suite;

@RunWith(Suite.class)
public class FooTest
{

}


And the error looks like this:

org.junit.runners.Suite can not be found in source packages. Check the
inheritance chain from your module; it may not be inheriting a
required module or a module may not be adding its source path entries
properly. FooTest.java /GWTTesting/test/pkg/client line 5


Adam

On Oct 27, 9:37 am, Eric Clayberg <clayb...@google.com> wrote:
> It would be helpful to see a test case project that wil reproduce
> this.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment