很多首字母缩略词是怎么回事!
我在使用 GWT 的 GWTTestCase 测试 GWT 的 RPC 机制时遇到了问题。我使用 GWT 附带的 junitCreator 工具创建了一个用于测试的类。我正在尝试使用由 junitCreator 创建的创建的“托管模式”测试配置文件使用内置的 Google App Engine 进行测试。当我运行测试时,我不断收到类似
这样的错误Starting HTTP on port 0
HTTP listening on port 49569
The development shell servlet received a request for 'greet' in module 'com.google.gwt.sample.stockwatcher.StockWatcher.JUnit.gwt.xml'
[WARN] Resource not found: greet; (could a file be missing from the public path or a <servlet> tag misconfigured in module com.google.gwt.sample.stockwatcher.StockWatcher.JUnit.gwt.xml ?)
com.google.gwt.user.client.rpc.StatusCodeException: Cannot find resource 'greet' in the public path of module 'com.google.gwt.sample.stockwatcher.StockWatcher.JUnit'
我希望某个地方的某个人已经成功运行了 junit 测试(使用 GWTTestCase 或只是普通的 TestCase),这将允许测试 gwt RPC。如果是这种情况,能否请您提及您采取的步骤,或者更好的是,只需发布有效的代码。谢谢。
最佳答案
SyncProxy 允许您从 Java 进行 GWT RPC 调用。因此,您可以使用常规测试用例(并且比 GwtTestcase 更快)测试您的 GWT RPC
见
http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/
http://www.gdevelop.com/w/blog/2010/03/13/invoke-gwt-rpc-services-deployed-on-google-app-engine/
关于google-app-engine - 使用带有 GAE 的 GWT-TestCase 测试 RPC 调用的示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/972453/