@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);
 }
 @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
 @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();
  }
  @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();
  }
  @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();
  }
 @Override
 protected void gwtSetUp() throws Exception {
   super.gwtSetUp();
   eventBus = new EventBus();
 }
示例#10
0
 @Override
 public void gwtTearDown() throws Exception {
   super.gwtTearDown();
 }
 @Override
 protected void gwtTearDown() throws Exception {
   // clean up after ourselves
   RootPanel.get().clear();
   super.gwtTearDown();
 }
 @Override
 protected void gwtSetUp() throws Exception {
   super.gwtSetUp();
   MainView.initForTest();
 }
 @Override
 protected void gwtTearDown() throws Exception {
   BeanHelper.clearBeanHelpersForTests();
   super.gwtTearDown();
 }
 @Override
 protected void gwtSetUp() throws Exception {
   super.gwtSetUp();
   BeanHelper.clearBeanHelpersForTests();
 }
示例#15
0
 @Override
 protected void gwtSetUp() throws Exception {
   super.gwtSetUp();
   delayTestFinish(RPC_TIMEOUT);
 }