Addtional test
@@ -25,6 +25,8 @@ import mockit.integration.junit4.JMockit;
import org.junit.Test;
import org.junit.runner.RunWith;
+import static io.fabric8.maven.docker.config.ArchiveCompression.gzip;
+import static io.fabric8.maven.docker.config.ArchiveCompression.none;
import static org.junit.Assert.*;
/**
@@ -126,5 +128,16 @@ public class BuildImageConfigurationTest {
assertEquals(new File("this"), config.getDockerArchive());
}
+ @Test
+ public void compression() {
+ BuildImageConfiguration config =
+ new BuildImageConfiguration.Builder().
+ compression("gzip").build();
+ assertEquals(gzip, config.getCompression());
+
+ config = new BuildImageConfiguration.Builder().build();
+ assertEquals(none, config.getCompression());
+ }
+
}
