public void checkConfiguration() throws RuntimeConfigurationException {
super.checkConfiguration();
if (testTargetType.equals(TestTargetType.Package) &&
(packageName == null || packageName.isEmpty())) {
throw new RuntimeConfigurationException("Package name is required");
}
if (testTargetType.equals(TestTargetType.File) &&
(testFile.isEmpty() || (!testFile.isEmpty() && !testFile.contains("_test.go")))) {
throw new RuntimeConfigurationException("The selected file does not appear to be a test file");
}
if (!workingDir.isEmpty()) {
File dir = new File(workingDir);
if (!dir.exists()) {
throw new RuntimeConfigurationException("The selected application working directory does not appear to exist.");
}
if (!dir.isDirectory()) {
throw new RuntimeConfigurationException("The selected application working directory does not appear to be a directory.");
}
}
}