Search in sources :

Example 6 with DockerAssemblyConfigurationSource

use of io.fabric8.maven.docker.assembly.DockerAssemblyConfigurationSource in project docker-maven-plugin by fabric8io.

the class DockerAssemblyConfigurationSourceTest method testEmptyAssemblyConfig.

@Test
public void testEmptyAssemblyConfig() {
    DockerAssemblyConfigurationSource source = new DockerAssemblyConfigurationSource(new MojoParameters(null, null, null, null, null, null, "/src/docker", "/output/docker", null), null, null);
    assertEquals(0, source.getDescriptors().length);
}
Also used : MojoParameters(io.fabric8.maven.docker.util.MojoParameters) Test(org.junit.Test)

Aggregations

MojoParameters (io.fabric8.maven.docker.util.MojoParameters)3 Test (org.junit.Test)3 File (java.io.File)2 Assembly (org.apache.maven.plugin.assembly.model.Assembly)2 DockerAssemblyConfigurationSource (io.fabric8.maven.docker.assembly.DockerAssemblyConfigurationSource)1 AssemblyConfiguration (io.fabric8.maven.docker.config.AssemblyConfiguration)1 AssemblyMode (io.fabric8.maven.docker.config.AssemblyMode)1 MojoExecutionException (org.apache.maven.plugin.MojoExecutionException)1 InvalidAssemblerConfigurationException (org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException)1 ArchiveCreationException (org.apache.maven.plugin.assembly.archive.ArchiveCreationException)1 AssemblyFormattingException (org.apache.maven.plugin.assembly.format.AssemblyFormattingException)1 MavenProject (org.apache.maven.project.MavenProject)1