运行测试时,您必须至少传递一个VM参数,指明在哪种GWT模式(托管或Web)下运行测试。
When running tests, you must pass in at least one VM argument to help specify which GWT mode (hosted or Web) to run the test in.
我已将main方法包含在twittersearchconnector类中,因此在无需运行Bonita情况下您可以在单机模式中测试此类的功能。
I've included a main method in the TwitterSearchConnector class so you can test the class's functionality in stand-alone mode without needing to run Bonita. Listing 5 shows the main method.
在附加模式中,集成测试客户端监视和模拟组件,并在模块运行时进行连接,但是它不是先调用组件,而是外部源执行调用。
In attach mode, the integration test client monitors and emulates components and wires as a module runs, but it doesn't first invoke a component; instead, an external source does the invoking.
应用推荐