de.smartics.ci.config.test
Class MavenPomBuilder

Package class diagram package MavenPomBuilder
java.lang.Object
  extended by de.smartics.ci.config.test.MavenPomBuilder

public final class MavenPomBuilder
     
     
extends Object

Builder for instances of MavenPom.


Field Summary
static String ARTIFACT_ID
          The default valid value for a group ID.
static String DESCRIPTION
          The default valid value for a description.
static String GROUP_ID
          The default valid value for an artifact ID.
static String SCM_CONNECTION_STRING
          The default valid value for an SCM connection string.
 
Method Summary
static MavenPomBuilder a()
          Creates an instance of the builder.
static MavenPomBuilder aNew()
          Creates an instance of the builder.
 MavenPom build()
          Creates an instance of MavenPom.
 MavenPomBuilder withArtifactId(String artifactId)
          Sets the project's artifact identifier.
 MavenPomBuilder withDescription(String description)
          Sets the project's description.
 MavenPomBuilder withGroupId(String groupId)
          Sets the project's group identifier.
 MavenPomBuilder withScmConnectionString(String scmConnectionString)
          Sets the SCM connection string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_ID

public static final String GROUP_ID
The default valid value for an artifact ID.

Constant Field Value:
"de.smartics.test"

ARTIFACT_ID

public static final String ARTIFACT_ID
The default valid value for a group ID.

Constant Field Value:
"smartics-test"

DESCRIPTION

public static final String DESCRIPTION
The default valid value for a description.

Constant Field Value:
"A test project description."

SCM_CONNECTION_STRING

public static final String SCM_CONNECTION_STRING
The default valid value for an SCM connection string.

Constant Field Value:
"scm:svn:http://some/url"
Method Detail

withGroupId

public MavenPomBuilder withGroupId(String groupId)
Sets the project's group identifier.

Parameters:
scmConnectionString - the project's group identifier.
Returns:
a reference to the builder instance.

withArtifactId

public MavenPomBuilder withArtifactId(String artifactId)
Sets the project's artifact identifier.

Parameters:
artifactId - the project's artifact identifier.
Returns:
a reference to the builder instance.

withDescription

public MavenPomBuilder withDescription(String description)
Sets the project's description.

Parameters:
description - the project's description.
Returns:
a reference to the builder instance.

withScmConnectionString

public MavenPomBuilder withScmConnectionString(String scmConnectionString)
Sets the SCM connection string.

Parameters:
scmConnectionString - the SCM connection string.
Returns:
a reference to the builder instance.

aNew

public static MavenPomBuilder aNew()
Creates an instance of the builder.

Returns:
the new instance.

a

public static MavenPomBuilder a()
Creates an instance of the builder.

Returns:
a preconfigured instance with valid values for tests.

build

public MavenPom build()
Creates an instance of MavenPom.

Returns:
the new instance.


Copyright © 2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.