Package zone.gryphon.maven.plugins.scm
Class AbstractScmMetadataMavenPluginMojoIntegrationTest
- java.lang.Object
-
- zone.gryphon.maven.plugins.scm.AbstractScmMetadataMavenPluginMojoIntegrationTest
-
- Direct Known Subclasses:
ScmMetadataMavenPluginMojoIntegrationTest
public abstract class AbstractScmMetadataMavenPluginMojoIntegrationTest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected String
className
protected String[]
DEFAULT_PROPERTIES
implementation note:protected File
folder
Transient temporary folder into which test files can be writtenprotected File
pom
POM file infolder
protected static Random
random
org.apache.maven.plugin.testing.MojoRule
rule
protected static File
TARGET_FOLDER
TestNameLogger
testNameLogger
-
Constructor Summary
Constructors Constructor Description AbstractScmMetadataMavenPluginMojoIntegrationTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
protected String[]
concat(String[] one, String[] two)
protected void
copy(File source, File dest)
protected Properties
copyOf(Properties input)
protected String
hex()
protected static File
newFile(File parent, String... parts)
protected org.apache.maven.project.MavenProject
readProject()
protected zone.gryphon.maven.plugins.scm.ScmMetadataMavenPluginMojo
readScmMetadataMavenPluginMojo(org.apache.maven.project.MavenProject project)
void
setup()
-
-
-
Field Detail
-
TARGET_FOLDER
protected static final File TARGET_FOLDER
-
random
protected static final Random random
-
rule
public final org.apache.maven.plugin.testing.MojoRule rule
-
testNameLogger
public final TestNameLogger testNameLogger
-
DEFAULT_PROPERTIES
protected final String[] DEFAULT_PROPERTIES
implementation note:
not markedstatic
so that separate test runs cannot interfere with each other if one of them mutates the array
-
className
protected final String className
-
folder
protected File folder
Transient temporary folder into which test files can be written
-
-
Method Detail
-
setup
public void setup()
-
cleanup
public void cleanup()
-
copyOf
protected Properties copyOf(Properties input)
-
readProject
protected org.apache.maven.project.MavenProject readProject()
-
readScmMetadataMavenPluginMojo
protected zone.gryphon.maven.plugins.scm.ScmMetadataMavenPluginMojo readScmMetadataMavenPluginMojo(org.apache.maven.project.MavenProject project)
-
hex
protected String hex()
-
-