Package org.locationtech.udig.catalog.tests.ui.workflow

Examples of org.locationtech.udig.catalog.tests.ui.workflow.DummyMonitor


        catalog = CatalogPlugin.getDefault().getLocalCatalog();
    }
    catch( NullPointerException npe ){
        fail("Please run as a Plug-in Test");
    }
    for (Iterator itr = catalog.members(new DummyMonitor()).iterator(); itr
        .hasNext();) {
      catalog.remove((IService) itr.next());
    }

    view = (CatalogView) PlatformUI.getWorkbench()
View Full Code Here


    public void testNormal() throws Exception {
        Object context = getContext();
       
        ICatalog catalog = CatalogPlugin.getDefault().getLocalCatalog();
       
        List members = catalog.members(new DummyMonitor());
        if (!members.isEmpty()) {
            //clear the catalog
            for (Iterator itr = members.iterator(); itr.hasNext();) {
                IService service = (IService)itr.next();
                catalog.remove(service);
            }
        }
        members = catalog.members(new DummyMonitor());
        assertTrue(members.isEmpty());

        runMapImport(context);
       
        IMap map = ApplicationGIS.getActiveMap();
View Full Code Here

       
    }

    private void runMapImport( Object context ) throws Exception {       

        mapImport.run(new DummyMonitor(),context);

        WaitCondition object = new WaitCondition(){

      public boolean isTrue() {
                IMap map = ApplicationGIS.getActiveMap();
View Full Code Here

    public void testMultiResource() throws Exception {
        Object context = DummyMultiResourceService.url;
       
        ICatalog catalog = CatalogPlugin.getDefault().getLocalCatalog();
       
        List members = catalog.members(new DummyMonitor());
        if (!members.isEmpty()) {
            //clear the catalog
            for (Iterator itr = members.iterator(); itr.hasNext();) {
                IService service = (IService)itr.next();
                catalog.remove(service);
            }
        }
        members = catalog.members(new DummyMonitor());
        assertTrue(members.isEmpty());
       

        final WorkflowWizard workflowWizard = mapImport.getDialog().getWorkflowWizard();
    workflowWizard.getWorkflow()
            .setContext(context);
        mapImport.run(new DummyMonitor(),context);
       
        UDIGTestUtil.inDisplayThreadWait(3000, new WaitCondition(){

      public boolean isTrue()  {
        State state = workflowWizard.getWorkflow().getCurrentState();
View Full Code Here

  public void testNormal() throws Exception{
      Object context = getContext();

      final ICatalog catalog = CatalogPlugin.getDefault().getLocalCatalog();

      List members = catalog.members(new DummyMonitor());
      if (!members.isEmpty()) {
        //clear the catalog
        for (Iterator itr = members.iterator(); itr.hasNext();) {
          IService service = (IService)itr.next();
          catalog.remove(service);
        }
      }
      members = catalog.members(new DummyMonitor());
      assertTrue(members.isEmpty());

      catalogImport.getDialog().getWorkflowWizard().getWorkflow()
        .setContext(context);
      catalogImport.run(new DummyMonitor(),context);

            //sleep for 10 seconds, if dialog still active by then kill it
            UDIGTestUtil.inDisplayThreadWait(2000000, new WaitCondition(){

                public boolean isTrue() {
                    try {
                        return !catalog.members(new DummyMonitor()).isEmpty();
                    } catch (IOException e) {
                        return false;
                    }
                }

            }, true);

      members = catalog.members(new DummyMonitor());
      assertTrue(!members.isEmpty());
      for (Iterator itr = members.iterator(); itr.hasNext();) {
        assertServiceType((IService)itr.next());
      }
  }
View Full Code Here

        DialogDriver driver = new DialogDriver(catalogImport.getDialog(), new Object[]{a1,
                IDialogConstants.CANCEL_ID});

        driver.schedule();
        catalogImport.getDialog().getWorkflowWizard().getWorkflow().setContext(context);
        catalogImport.run(new DummyMonitor(), context);
        driver.cancel();
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.tests.ui.workflow.DummyMonitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.