"Although GWT translates Java into JavaScript for client-side code,
GWT does not meddle with your ability to run Java bytecode on your
server whatsoever. Server-side code doesn't need to be translatable,
so you're free to use any Java library you find useful."
Simply put, I want GWT to meddle with some of my code, but not all of
it.
Is there a way to have a unit test with both server and client code?
This code fails with an error message.
--------------------------------------------------------------------------------------------
import com.example.myproject.server.GreetingServiceImpl;
public class ProjectTest extends GWTTestCase {
public String getModuleName() {
return "com.example.myproject.Project";
}
GreetingServiceImpl greet = new GreetingServiceImpl();
@Test
public void test01(){
}
}
--------------------------------------------------------------------------------------------
No source code is available for type
com.example.myproject.server.GreetingServiceImpl; did you forget to
inherit a required module?
--------------------------------------------------------------------------------------------
I understand why this fails. How can we get this to work?
Thanks,
Tim
--
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