Closed LorenzoBettini closed 2 years ago
Actually, it's much easier:
public static boolean onClassPathOf(IJavaProject project, String fullyQualifiedName) throws CoreException {
return project.findType(fullyQualifiedName) != null;
}
@echebbi I hope you don't mind I'm merging these PRs
As noted in
org.pitest.pitclipse.launch.AbstractPitLaunchDelegate.isJUnit5InClasspathOf(IJavaProject)
we use a naive mechanism for detecting JUnit5 on the classpath.We could try to load some classes of the JUnit 5 engine by constructing a classloader using the classpath of the Java project. Something like (untested)