return projectFactory;
}
protected void addTestScopedDependency(final Project project, final DependencyArtifact artifact) {
final DependencyBuilder depBuilder = DependencyBuilder.create(artifact.toString());
final MavenDependencyFacet dependencyFacet = project.getFacet(MavenDependencyFacet.class);
final VersionOracle versionOracle = new VersionOracle(dependencyFacet);
if (!dependencyFacet.hasDirectDependency(depBuilder)) {
if (!versionOracle.isManaged(depBuilder)) {
depBuilder.setVersion(versionOracle.resolveVersion(GwtMockito));
}
dependencyFacet.addDirectDependency(depBuilder);
}
}