Search in sources :

Example 1 with CfTargetsInfo

use of org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget.CfTargetsInfo in project sts4 by spring-projects.

the class ManifestYamlActualCfClientTest method setup.

@Before
public void setup() throws Exception {
    cfJson = new CfJson();
    CfTargetsInfo info = getTargetsInfoFromEnv();
    CfTargetsInfoProvder provider = new CfTargetsInfoProvder(info);
    CfClientConfig cfClientConfig = CfClientConfig.createDefault(provider);
    CloudFoundryClientFactory clientFactory = DefaultCloudFoundryClientFactoryV2.INSTANCE;
    cfTargetCache = new CFTargetCache(cfClientConfig, clientFactory, new ClientTimeouts());
}
Also used : CfClientConfig(org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget.CfClientConfig) ClientTimeouts(org.springframework.ide.vscode.commons.cloudfoundry.client.ClientTimeouts) CfTargetsInfoProvder(org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget.CfTargetsInfoProvder) CloudFoundryClientFactory(org.springframework.ide.vscode.commons.cloudfoundry.client.CloudFoundryClientFactory) CFTargetCache(org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget.CFTargetCache) CfTargetsInfo(org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget.CfTargetsInfo) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 ClientTimeouts (org.springframework.ide.vscode.commons.cloudfoundry.client.ClientTimeouts)1 CloudFoundryClientFactory (org.springframework.ide.vscode.commons.cloudfoundry.client.CloudFoundryClientFactory)1 CFTargetCache (org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget.CFTargetCache)1 CfClientConfig (org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget.CfClientConfig)1 CfTargetsInfo (org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget.CfTargetsInfo)1 CfTargetsInfoProvder (org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget.CfTargetsInfoProvder)1