@Test
public void should_build_images_and_generate_resources() throws IOException {
final String rootPath = temporaryFolder.getRoot().toString() + "spring-boot-http-booster";
copyDirectory(Paths.get("src/test/resources/spring-boot-http-booster"), Paths.get(rootPath));
new Fabric8MavenPluginResourceGeneratorBuilder()
.namespace(namespace)
.quiet()
.withProperties("version.cube", System.getProperty("version.cube", "1.15.3"))
.pluginConfigurationIn(Paths.get(rootPath, "pom.xml"))
.build();
final File resources = Paths.get(rootPath, "target/classes/META-INF/fabric8").toFile();
final File build = Paths.get(rootPath, "target/docker").toFile();
assertThat(resources.listFiles()).isNotEmpty();
assertThat(resources.listFiles()).contains(Paths.get(resources.toString(), "kubernetes.json").toFile(), Paths.get(
resources.toString(), "openshift.json").toFile());
assertThat(build.listFiles()).isNotEmpty();
}