public abstract class AbstractReleaseTestCase extends PlexusJUnit4TestCase
Modifier and Type | Field and Description |
---|---|
protected ArtifactRepository |
localRepository |
protected ReleasePhase |
phase |
protected ProjectBuilder |
projectBuilder |
Constructor and Description |
---|
AbstractReleaseTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
comparePomFiles(File expectedFile,
File actualFile) |
protected void |
comparePomFiles(File expectedFile,
File actualFile,
boolean normalizeLineEndings,
boolean ignoreComments) |
protected boolean |
comparePomFiles(List<MavenProject> reactorProjects) |
protected boolean |
comparePomFiles(List<MavenProject> reactorProjects,
boolean normalizeLineEndings) |
protected void |
comparePomFiles(List<MavenProject> reactorProjects,
String expectedFileSuffix) |
protected void |
comparePomFiles(List<MavenProject> reactorProjects,
String expectedFileSuffix,
boolean normalizeLineEndings) |
protected void |
comparePomFiles(MavenProject project,
String expectedFileSuffix) |
protected void |
comparePomFiles(MavenProject project,
String expectedFileSuffix,
boolean normalizeLineEndings) |
protected List<MavenProject> |
createReactorProjects(String path,
String subpath) |
protected List<MavenProject> |
createReactorProjects(String sourcePath,
String targetPath,
String executionRoot) |
protected ReleaseDescriptorBuilder |
createReleaseDescriptorBuilder(List<MavenProject> reactorProjects) |
static String |
getPath(File file) |
protected static Map<String,MavenProject> |
getProjectsAsMap(List<MavenProject> reactorProjects) |
protected Path |
getWorkingDirectory(String workingDir) |
void |
setUp() |
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, tearDown
protected ProjectBuilder projectBuilder
protected ArtifactRepository localRepository
protected ReleasePhase phase
public void setUp() throws Exception
setUp
in class PlexusJUnit4TestCase
Exception
protected List<MavenProject> createReactorProjects(String path, String subpath) throws Exception
Exception
protected ReleaseDescriptorBuilder createReleaseDescriptorBuilder(List<MavenProject> reactorProjects)
protected List<MavenProject> createReactorProjects(String sourcePath, String targetPath, String executionRoot) throws Exception
sourcePath
- sourceDirectory to copy fromtargetPath
- targetDirectory to copy toexecutionRoot
- sub directory of targetPath in case the root pom.xml is not used (e.g. flat projects)Exception
- if any occursprotected static Map<String,MavenProject> getProjectsAsMap(List<MavenProject> reactorProjects)
protected boolean comparePomFiles(List<MavenProject> reactorProjects) throws IOException
IOException
protected boolean comparePomFiles(List<MavenProject> reactorProjects, boolean normalizeLineEndings) throws IOException
IOException
protected void comparePomFiles(List<MavenProject> reactorProjects, String expectedFileSuffix) throws IOException
IOException
protected void comparePomFiles(List<MavenProject> reactorProjects, String expectedFileSuffix, boolean normalizeLineEndings) throws IOException
IOException
protected void comparePomFiles(MavenProject project, String expectedFileSuffix) throws IOException
IOException
protected void comparePomFiles(MavenProject project, String expectedFileSuffix, boolean normalizeLineEndings) throws IOException
IOException
protected void comparePomFiles(File expectedFile, File actualFile) throws IOException
IOException
protected void comparePomFiles(File expectedFile, File actualFile, boolean normalizeLineEndings, boolean ignoreComments) throws IOException
IOException
public static String getPath(File file) throws IOException
IOException
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.