@Test public void addsAnOsgiManifestToEachJar() { osgiPlugin.apply(project, new PluginRegistry(), null); Task task = project.getTasks().getByName(JavaPlugin.JAR_TASK_NAME); assertThat(task.property("osgi"), is(OsgiManifest.class)); task = project.getTasks().add("otherJar", Jar.class); assertThat(task.property("osgi"), is(OsgiManifest.class)); }
@Test public void appliesTheJavaPlugin() { osgiPlugin.apply(project, new PluginRegistry(), null); assertTrue(project.getAppliedPlugins().contains(JavaPlugin.class)); }