DefaultJavaResourceLocator implements JavaResourceLocator { @Override public Collection<File> classpath() { return javaClasspath.getElements(); } DefaultJavaResourceLocator(JavaClasspath javaClasspath); @Override InputFile findResourceByClassName(String className); @Override Collection<File> classFilesToAnalyze(); @Override Collection<File> classpath(); @Override void scanFile(JavaFileScannerContext context);  }
@Test void classpath() throws Exception { assertThat(javaResourceLocator.classpath()).hasSize(1); }