コード例 #1
0
 @Override
 protected void gwtSetUp() throws Exception {
   super.gwtSetUp();
   UserSession session = new UserSession();
   session.put(UserSession.APP_HEADER, new AppHeader());
   Registry.register(BrowseRecords.USER_SESSION, session);
 }
コード例 #2
0
 @Override
 protected void gwtSetUp() throws Exception {
   new Container().bootstrapContainer();
   RestClient.setApplicationRoot(jaxRsApplicationRoot);
   RestClient.setJacksonMarshallingActive(false);
   super.gwtSetUp();
 }
  @Override
  protected void gwtSetUp() throws Exception {
    super.gwtSetUp();

    injector = GWT.create(SearchResultScrollTableTestGinjector.class);

    resultsTable = injector.getSearchResultsTable();
  }
コード例 #4
0
ファイル: UiBinderTest.java プロジェクト: hammoum/gwt
 @Override
 public void gwtSetUp() throws Exception {
   super.gwtSetUp();
   UiBinderTestApp app = UiBinderTestApp.getInstance();
   widgetUi = app.getWidgetUi();
   domUi = app.getDomUi();
   root = widgetUi.root;
 }
コード例 #5
0
  @Override
  protected void gwtSetUp() throws Exception {
    super.gwtSetUp();

    new IOCBeanManagerLifecycle().resetBeanManager();

    // We need to bootstrap the IoC container manually because GWTTestCase
    // doesn't call onModuleLoad() for us.
    new Container().bootstrapContainer();
  }
コード例 #6
0
  @Override
  protected void gwtTearDown() throws Exception {
    assertFalse(
        "ClientSyncManager 'sync in progress' flag got stuck on true", csm.isSyncInProgress());

    if (syncBean != null) {
      IOC.getBeanManager().destroyBean(syncBean);
    }

    Container.reset();
    IOC.reset();
    InitVotes.reset();
    setRemoteCommunicationEnabled(true);
    super.gwtTearDown();
  }
コード例 #7
0
  @Override
  protected void gwtSetUp() throws Exception {
    super.gwtSetUp();

    resources = GWT.create(TestResources.class);

    NodeDataAdapter<FileTreeNode> dataAdapter = new FileTreeNodeDataAdapter();
    NodeRenderer<FileTreeNode> dataRenderer = FileTreeNodeRenderer.create(resources);
    Tree.Model<FileTreeNode> model =
        new Tree.Model<FileTreeNode>(dataAdapter, dataRenderer, resources);

    mockTree = new Tree<FileTreeNode>(new Tree.View<FileTreeNode>(resources), model);
    mockTree
        .getModel()
        .setRoot(
            FileTreeNode.transform(
                TreeTestUtils.createMockTree(TreeTestUtils.CLIENT_NODE_INFO_FACTORY)));
    mockSelectionModel = mockTree.getSelectionModel();
  }
コード例 #8
0
  @Override
  protected void gwtSetUp() throws Exception {
    setRemoteCommunicationEnabled(false);
    InitVotes.setTimeoutMillis(60000);

    ClientSyncManager.resetInstance();

    // Unfortunately, GWTTestCase does not call our inherited module's onModuleLoad() methods
    // http://code.google.com/p/google-web-toolkit/issues/detail?id=3791
    new IOCBeanManagerLifecycle().resetBeanManager();
    new CDI().__resetSubsystem();
    new Container().onModuleLoad();
    new CDIClientBootstrap().onModuleLoad();

    InitVotes.startInitPolling();

    super.gwtSetUp();

    csm = IOC.getBeanManager().lookupBean(ClientSyncManager.class).getInstance();

    csm.getDesiredStateEm().removeAll();
    csm.getExpectedStateEm().removeAll();
  }
コード例 #9
0
 @Override
 protected void gwtSetUp() throws Exception {
   super.gwtSetUp();
   eventBus = new EventBus();
 }
コード例 #10
0
 @Override
 public void gwtTearDown() throws Exception {
   super.gwtTearDown();
 }
コード例 #11
0
 @Override
 protected void gwtTearDown() throws Exception {
   // clean up after ourselves
   RootPanel.get().clear();
   super.gwtTearDown();
 }
コード例 #12
0
 @Override
 protected void gwtSetUp() throws Exception {
   super.gwtSetUp();
   MainView.initForTest();
 }
コード例 #13
0
 @Override
 protected void gwtTearDown() throws Exception {
   BeanHelper.clearBeanHelpersForTests();
   super.gwtTearDown();
 }
コード例 #14
0
 @Override
 protected void gwtSetUp() throws Exception {
   super.gwtSetUp();
   BeanHelper.clearBeanHelpersForTests();
 }
コード例 #15
0
 @Override
 protected void gwtSetUp() throws Exception {
   super.gwtSetUp();
   delayTestFinish(RPC_TIMEOUT);
 }