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 StringclassNameprotected String[]DEFAULT_PROPERTIESimplementation note:protected FilefolderTransient temporary folder into which test files can be writtenprotected FilepomPOM file infolderprotected static Randomrandomorg.apache.maven.plugin.testing.MojoRuleruleprotected static FileTARGET_FOLDERTestNameLoggertestNameLogger
-
Constructor Summary
Constructors Constructor Description AbstractScmMetadataMavenPluginMojoIntegrationTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()protected String[]concat(String[] one, String[] two)protected voidcopy(File source, File dest)protected PropertiescopyOf(Properties input)protected Stringhex()protected static FilenewFile(File parent, String... parts)protected org.apache.maven.project.MavenProjectreadProject()protected zone.gryphon.maven.plugins.scm.ScmMetadataMavenPluginMojoreadScmMetadataMavenPluginMojo(org.apache.maven.project.MavenProject project)voidsetup()
-
-
-
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 markedstaticso 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()
-
-