Example usage for org.springframework.ide.eclipse.boot.dash.model BootDashElement getRunState

List of usage examples for org.springframework.ide.eclipse.boot.dash.model BootDashElement getRunState

Introduction

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

Prototype

RunState getRunState();

Source Link

Usage

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

public static void waitForState(final BootDashElement element, final RunState state, long timeOut)
        throws Exception {
    new ACondition("Wait for state " + state, timeOut) {
        @Override//from   w  ww  .j a v a 2s  .c om
        public boolean test() throws Exception {
            assertEquals(state, element.getRunState());
            return true;
        }
    };
}