GWT 编译

GWT project 编译不同的模块时,花费的时间比较长。在iis 上还要自己去发布。每次都是重复动作。

eclipse 调试访问数据库的代码的时候需要去掉appengine. 这样就不会报 data deny 的错误。如果想通过tomcat 来调试需要设置为tomcat 工程。并将tomcat 下面的server.xml

添加  <Context path="/Demo" docBase="C:\Demo\war" crossContext="true" debug="0" />

这样使用gwt 编译后的文件不用再进行调整就是个完整的工程可以部署在tomcat 上,gwt-usr.jar 需要删除javax.servlet 文件。如果有其他问题,就需要检查catalina 的策略。放开权限。

tomcat 插件com.sysdeo.eclipse.tomcat_3.3.0 可以下载。


Combining TestCase classes into a TestSuite

The GWTTestSuite mechanism has the overhead of having to start a development mode shell and servlet or compile your code. There is also overhead for each test module within a suite.

Ideally you should group your tests into as few modules as is practical, and should avoid having tests in a particular module run by more than one suite. (Tests are in the same module if they return return the same value from getModuleName().)

GWTTestSuite class re-orders the test cases so that all cases that share a module are run back to back.

Creating a suite is simple if you have already defined individual JUnit TestCases or GWTTestCases. Here is an example:

public class MapsTestSuite extends GWTTestSuite {
  public static Test suite() {
    TestSuite suite = new TestSuite("Test for a Maps Application");
    suite.addTestSuite(MapTest.class); 
    suite.addTestSuite(EventTest.class);
    suite.addTestSuite(CopyTest.class);
    return suite;
  }
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值