// check the value of the property
Assert.assertEquals("org.apache.easyant.example.Example", property.getValue());
// check that package ExtensionPoint exists and that jar:jar target is bound to
// this extension-point
ExtensionPointReport packageEP = null;
for (ExtensionPointReport extensionPoint : eaReport.getExtensionPointReports()) {
if ("package".equals(extensionPoint.getName())) {
packageEP = extensionPoint;
break;
}
}
Assert.assertNotNull(packageEP);
Assert.assertEquals("compile,abstract-package:package,hello-world", packageEP.getDepends());
List<TargetReport> targets = packageEP.getTargetReports();
Set<String> expectedTargets = new HashSet<String>(Arrays.asList("hello-world"));
Assert.assertEquals(expectedTargets.size(), targets.size());
for (TargetReport target : packageEP.getTargetReports()) {
Assert.assertTrue("expected to find " + target.getName(), expectedTargets.remove(target.getName()));
}
TargetReport helloWorld = eaReport.getTargetReport("hello-world");
Assert.assertNotNull(helloWorld);