mirror of https://github.com/apache/jclouds.git
Tweaked the archetype a bit (symptoms of gold-plating ;-)).
git-svn-id: http://jclouds.googlecode.com/svn/trunk@2272 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
aa1dd2009b
commit
1c98852769
|
@ -8,8 +8,7 @@
|
|||
<defaultValue>Adrian Cole</defaultValue>
|
||||
</requiredProperty>
|
||||
<requiredProperty key="clientName" />
|
||||
<requiredProperty key="artifactId" />
|
||||
<requiredProperty key="endpoint" />
|
||||
<requiredProperty key="clientEndpoint" />
|
||||
<requiredProperty key="clientUser" />
|
||||
<requiredProperty key="clientPassword" />
|
||||
</requiredProperties>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<artifactId>jclouds-${artifactId}</artifactId>
|
||||
<name>jclouds ${clientName} core</name>
|
||||
<packaging>jar</packaging>
|
||||
<description>jclouds components to access ${clientName}</description>
|
||||
|
|
|
@ -46,7 +46,7 @@ public class ${clientName}PropertiesBuilder extends HttpPropertiesBuilder {
|
|||
@Override
|
||||
protected Properties defaultProperties() {
|
||||
Properties properties = super.defaultProperties();
|
||||
properties.setProperty(PROPERTY_${ucaseClientName}_ENDPOINT, "${endpoint}");
|
||||
properties.setProperty(PROPERTY_${ucaseClientName}_ENDPOINT, "${clientEndpoint}");
|
||||
return properties;
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ public class ${clientName}ClientTest extends RestClientTest<${clientName}Client>
|
|||
@Override
|
||||
protected void configure() {
|
||||
bind(URI.class).annotatedWith(${clientName}.class).toInstance(
|
||||
URI.create("${endpoint}"));
|
||||
URI.create("${clientEndpoint}"));
|
||||
bind(Logger.LoggerFactory.class).toInstance(new LoggerFactory() {
|
||||
public Logger getLogger(String category) {
|
||||
return Logger.NULL;
|
||||
|
|
|
@ -57,7 +57,7 @@ public class ${clientName}ContextBuilderTest {
|
|||
public void testNewBuilder() {
|
||||
${clientName}ContextBuilder builder = newBuilder();
|
||||
assertEquals(builder.getProperties().getProperty(${clientName}Constants.PROPERTY_${ucaseClientName}_ENDPOINT),
|
||||
"${endpoint}");
|
||||
"${clientEndpoint}");
|
||||
assertEquals(builder.getProperties().getProperty(${clientName}Constants.PROPERTY_${ucaseClientName}_USER),
|
||||
"user");
|
||||
assertEquals(builder.getProperties().getProperty(${clientName}Constants.PROPERTY_${ucaseClientName}_PASSWORD),
|
||||
|
@ -68,7 +68,7 @@ public class ${clientName}ContextBuilderTest {
|
|||
RestContext<${clientName}Client> context = newBuilder().buildContext();
|
||||
assertEquals(context.getClass(), RestContextImpl.class);
|
||||
assertEquals(context.getAccount(), "user");
|
||||
assertEquals(context.getEndPoint(), URI.create("${endpoint}"));
|
||||
assertEquals(context.getEndPoint(), URI.create("${clientEndpoint}"));
|
||||
}
|
||||
|
||||
public void testBuildInjector() {
|
||||
|
|
Loading…
Reference in New Issue