WarPlugin implements Plugin<Project> { @Override public void apply(Project project) { project.getPlugins().apply(org.gradle.api.plugins.WarPlugin.class); project.getPlugins().apply(WarOverlayPlugin.class); project.getPlugins().apply(WarArchiveClassesPlugin.class); project.getPlugins().apply(WarAttachClassesPlugin.class); }  @Override void apply(Project project);  }
@Test public void apply() { project.getPlugins().apply(WarPlugin.class); assertThat(project.getPlugins().hasPlugin(org.gradle.api.plugins.WarPlugin.class)).isTrue(); assertThat(project.getPlugins().hasPlugin(WarOverlayPlugin.class)).isTrue(); assertThat(project.getPlugins().hasPlugin(WarArchiveClassesPlugin.class)).isTrue(); assertThat(project.getPlugins().hasPlugin(WarAttachClassesPlugin.class)).isTrue(); }