Examples of ACondition


Examples of org.springsource.ide.eclipse.commons.frameworks.test.util.ACondition

    }
  }
 
  @After
  public void deleteProject() throws Exception {
    new ACondition("Wait for Jobs") {
      @Override
      public boolean test() throws Exception {
        assertJobManagerIdle();
        return true;
      }
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.frameworks.test.util.ACondition

    }
  }
 
  @After
  public void deleteProject() throws Exception {
    new ACondition("Wait for Jobs") {
      @Override
      public boolean test() throws Exception {
        assertJobManagerIdle();
        return true;
      }
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.frameworks.test.util.ACondition

    beansProject = new BeansProject(model, project);
  }
 
  @After
  public void deleteProject() throws Exception {
    new ACondition("Wait for Jobs") {
      @Override
      public boolean test() throws Exception {
        assertJobManagerIdle();
        return true;
      }
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.frameworks.test.util.ACondition

  public void deleteProject() throws Exception {
    BeansCorePlugin.setModel(realModel);
  }
 
  private void waitForJobsToComplete() throws Exception {
    new ACondition("Wait for Jobs") {
      @Override
      public boolean test() throws Exception {
        assertJobManagerIdle();
        return true;
      }
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.frameworks.test.util.ACondition

        return Status.OK_STATUS;
      }
    };
    job.setRule(ResourcesPlugin.getWorkspace().getRuleFactory().buildRule());
    job.schedule();
    new ACondition() {
      @Override
      public boolean test() throws Exception {
        return job.getResult()!=null;
      }
    }.waitFor(5*60*1000);
 
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.frameworks.test.util.ACondition

      }
      assertFalse(knownStarters.isEmpty());
     
      assertInitialStarters(project);
      project.setStarters(Collections.<SpringBootStarter> emptySet());
      new ACondition("all starters removed") {
        public boolean test() throws Exception {
          assertTrue(project.getBootStarters().isEmpty());
          return true;
        }
      }.waitFor(MAVEN_POM_REFRESH_TIMEOUT);
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.frameworks.test.util.ACondition

    //spring initializer now produces a spring-boot project with the 'test' starter applied by default.
    assertTrue(project.getBootStarters().isEmpty());
    project.addStarter(knownStarters.get("web"));
    //WARNING: presumably m2e model updates are asynchronous and we don't really know when the changes will be visible!
    //  the next assertion may fail when running at 'full speed'.
    new ACondition("web starter added") {
      public boolean test() throws Exception {
        assertContainsStarters(project.getBootStarters(), "web");
        return true;
      }
    }.waitFor(MAVEN_POM_REFRESH_TIMEOUT);
   
    project.removeStarter(knownStarters.get("web"));
   
    new ACondition("web starter removed") {
      public boolean test() throws Exception {
        assertTrue(project.getBootStarters().isEmpty()); //starter should be removed again.
        return true;
      }
    }.waitFor(MAVEN_POM_REFRESH_TIMEOUT);
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.frameworks.test.util.ACondition

 
  public void testSetStarters() throws Exception {
    assertTrue(project.getBootStarters().isEmpty());
   
    project.setStarters(knownStarters.values());
    new ACondition("all known starters added") {
      public boolean test() throws Exception {
        assertStarters(project, knownStarters.values());
        return true;
      }
    }.waitFor(MAVEN_POM_REFRESH_TIMEOUT);
   
    project.setStarters(new ArrayList<SpringBootStarter>());
    new ACondition("all starters removed") {
      public boolean test() throws Exception {
        assertStarters(project, new HashSet<SpringBootStarter>());
        return true;
      }
    }.waitFor(MAVEN_POM_REFRESH_TIMEOUT);
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.frameworks.test.util.ACondition

    factory = new JdtMetadataReaderFactory(javaProject, classloader);
  }
 
  @After
  public void deleteProject() throws Exception {
    new ACondition("Wait for Jobs") {
      @Override
      public boolean test() throws Exception {
        assertJobManagerIdle();
        return true;
      }
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.frameworks.test.util.ACondition

    factory = new JdtMetadataReaderFactory(javaProject, classloader);
  }
 
  @After
  public void deleteProject() throws Exception {
    new ACondition("Wait for Jobs") {
      @Override
      public boolean test() throws Exception {
        assertJobManagerIdle();
        return true;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.