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

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

Introduction

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

Prototype

public MockCFSpace(MockCloudFoundryClientFactory owner, String name, UUID guid, CFOrganization org) 

Source Link

Usage

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

public MockCFSpace defSpace(String orgName, String spaceName) {
    String key = orgName + "/" + spaceName;
    MockCFSpace existing = spacesByName.get(key);
    if (existing == null) {
        CFOrganization org = defOrg(orgName);
        spacesByName.put(key, existing = new MockCFSpace(this, spaceName, UUID.randomUUID(), org));
    }//from w  w w  .j a va2s  .  c o  m
    return existing;
}