addonDependency.getVersion().toString())
.setClassifier(MavenAddonDependencyResolver.FORGE_ADDON_CLASSIFIER).setScopeType("test");
Assert.assertTrue(deps.hasEffectiveDependency(dependency));
}
JavaSourceFacet facet = project.getFacet(JavaSourceFacet.class);
JavaResource javaResource = facet.getTestJavaResource("org.jboss.forge.test.MyTestCase");
Assert.assertNotNull(javaResource);
Assert.assertThat(javaResource.getJavaType(), is(instanceOf(JavaClass.class)));
Assert.assertFalse(javaResource.getJavaType().hasSyntaxErrors());
Resource<?> finalArtifact = project.getFacet(PackagingFacet.class).getFinalArtifact();
Assert.assertFalse(finalArtifact.exists());
Assert.assertTrue(project.getFacet(PackagingFacet.class).createBuilder().runTests(false).build()
.exists());