Example usage for org.springframework.ide.eclipse.boot.dash.cloudfoundry CloudFoundryRunTargetType getPersistentProperties

List of usage examples for org.springframework.ide.eclipse.boot.dash.cloudfoundry CloudFoundryRunTargetType getPersistentProperties

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.boot.dash.cloudfoundry CloudFoundryRunTargetType getPersistentProperties.

Prototype

@Override
    public PropertyStoreApi getPersistentProperties() 

Source Link

Usage

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

@Test
public void targetTypeProperties() throws Exception {
    {/* w  w  w  .  j a v a  2s .co  m*/
        CloudFoundryRunTargetType cfTargetType = harness.getCfTargetType();
        PropertyStoreApi props = cfTargetType.getPersistentProperties();
        props.put("testkey", "testvalue");
        assertEquals("testvalue", props.get("testkey"));
    }

    harness.reload();

    {
        CloudFoundryRunTargetType cfTargetType = harness.getCfTargetType();
        PropertyStoreApi props = cfTargetType.getPersistentProperties();
        assertEquals("testvalue", props.get("testkey"));
    }

}