Example usage for org.springframework.ide.eclipse.boot.dash.test.mocks MockCloudFoundryClientFactory MockCloudFoundryClientFactory

List of usage examples for org.springframework.ide.eclipse.boot.dash.test.mocks MockCloudFoundryClientFactory MockCloudFoundryClientFactory

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.boot.dash.test.mocks MockCloudFoundryClientFactory MockCloudFoundryClientFactory.

Prototype

public MockCloudFoundryClientFactory() 

Source Link

Usage

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

@Before
public void setup() throws Exception {
    StsTestUtil.deleteAllProjects();/*www .  j av  a2 s  .c  o m*/
    this.context = new TestBootDashModelContext(ResourcesPlugin.getWorkspace(),
            DebugPlugin.getDefault().getLaunchManager());
    this.clientFactory = new MockCloudFoundryClientFactory();
    this.harness = CloudFoundryTestHarness.create(context, clientFactory);
    this.projects = new BootProjectTestHarness(context.getWorkspace());
    this.ui = mock(UserInteractions.class);
    this.actions = new BootDashActions(harness.model, harness.selection.forReading(), harness.sectionSelection,
            ui);
}