Example usage for org.springframework.ide.eclipse.boot.dash.model BootProjectDashElement getProject

List of usage examples for org.springframework.ide.eclipse.boot.dash.model BootProjectDashElement getProject

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.boot.dash.model BootProjectDashElement getProject.

Prototype

@Override
    public IProject getProject() 

Source Link

Usage

From source file:org.springframework.ide.eclipse.boot.dash.test.CloudFoundryBootDashModelIntegrationTest.java

@Test
public void testDeployAppIntoDebugMode() throws Exception {
    harness.createCfTarget(CfTestTargetParams.fromEnv());
    final CloudFoundryBootDashModel model = harness.getCfTargetModel();

    final BootProjectDashElement project = harness
            .getElementFor(projects.createBootProject("to-deploy", withStarters("actuator", "web")));
    final String appName = appHarness.randomAppName();

    harness.answerDeploymentPrompt(ui, appName, appName);
    model.performDeployment(ImmutableSet.of(project.getProject()), ui, RunState.DEBUGGING);

    new ACondition("wait for app '" + appName + "'to be DEBUGGING", APP_DEPLOY_TIMEOUT) {
        public boolean test() throws Exception {
            CloudAppDashElement element = model.getApplication(appName);
            assertEquals(RunState.DEBUGGING, element.getRunState());
            return true;
        }//from w  w  w .  ja  v a 2s .  co m
    };

}