SpringBootGenerator extends JavaExecGenerator { @Override public boolean isApplicable(List<ImageConfiguration> configs) { return shouldAddImageConfiguration(configs) && MavenUtil.hasPluginOfAnyGroupId(getProject(), SpringBootConfigurationHelper.SPRING_BOOT_MAVEN_PLUGIN_ARTIFACT_ID); } SpringBootGenerator(GeneratorContext context); @Override boolean isApplicable(List<ImageConfiguration> configs); @Override List<ImageConfiguration> customize(List<ImageConfiguration> configs, boolean isPrePackagePhase);  }
@Test public void notApplicable() throws IOException { SpringBootGenerator generator = new SpringBootGenerator(createGeneratorContext()); assertFalse(generator.isApplicable((List<ImageConfiguration>) Collections.EMPTY_LIST)); }