refactored to not require the type of the api

git-svn-id: http://jclouds.googlecode.com/svn/trunk@1907 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-09-24 00:14:17 +00:00
parent ca7ae7040c
commit 2f2dd9f881
1 changed files with 12 additions and 2 deletions

View File

@ -25,6 +25,7 @@ package org.jclouds.cloud;
import static org.testng.Assert.assertEquals;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
@ -64,13 +65,22 @@ public class CloudContextBuilderTest {
}
public String getConnection() {
public String getApi() {
return "";
}
public String getAccount() {
return "";
}
class TestCloudContextBuilder extends CloudContextBuilder<String, TestCloudContext> {
public URI getEndPoint() {
return URI.create("http://localhost");
}
}
class TestCloudContextBuilder extends CloudContextBuilder<TestCloudContext> {
protected TestCloudContextBuilder(Properties properties) {
super(properties);