if (testClassLocations == null) {
System.out.println("Unable to find any test class locations corresponding with " + currentDirectoryName);
return null;
}
SearchClassCommand command = new SearchClassCommand() {
@Override
protected ClassFindCommand newClassFindCommand() {
final ClassFindCommand classFindCommand = super.newClassFindCommand();
classFindCommand.setDirectoryFilter(new ModuleDefinitionAwareClassFilter());
return classFindCommand;
}
};
command.setClassDirectories(Arrays.asList(ResourceUtils.getFiles(testClassLocations)));
command.execute(commandState);
String className = command.getClassName();
return className;
}