public class WorkingDirectoryGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.plugin.logging.Log |
log |
| Constructor and Description |
|---|
WorkingDirectoryGenerator(org.apache.maven.plugin.logging.Log log,
org.apache.maven.project.MavenProject project) |
| Modifier and Type | Method and Description |
|---|---|
Path |
generateApplicationStructure()
It creates the application folder structure in the working directory
|
Optional<Path> |
generateDomainStructure()
It creates the domain folder structure in the working directory provided there is a mule-domain as dependency of the
application.
|
Path |
generateWorkingDirectory()
Provides the File to a new MUnit working directory that has been generated in the project's target and appended a timestamp.
|
protected org.mule.munit.remote.ApplicationStructureGenerator |
getApplicationStructureGenerator(Path baseFolderPath,
Path sourceFolderPath,
Path destinationPath) |
protected org.mule.munit.remote.DomainStructureGenerator |
getDomainStructureGenerator(Optional<org.apache.maven.artifact.Artifact> domainArtifact,
File domainFile) |
protected MuleApplicationDependencyFinder |
getMuleApplicationDependencyFinder() |
public WorkingDirectoryGenerator(org.apache.maven.plugin.logging.Log log,
org.apache.maven.project.MavenProject project)
public Path generateWorkingDirectory()
public Path generateApplicationStructure() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic Optional<Path> generateDomainStructure() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected MuleApplicationDependencyFinder getMuleApplicationDependencyFinder()
protected org.mule.munit.remote.DomainStructureGenerator getDomainStructureGenerator(Optional<org.apache.maven.artifact.Artifact> domainArtifact, File domainFile)
Copyright © 2018. All rights reserved.