You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Generates the main path for a given application name, file name, option, and configuration.
*
* @param app the application
* @param fileName the name of the file
* @param option the GuidesOption to consider
* @param configuration the GuidesConfiguration to use
* @return the generated main path
*/
@NonNull
static String mainPath(@NonNull App app,
@NonNull String fileName,
@NonNull GuidesOption option,
@NonNull GuidesConfiguration configuration) {
return pathByFolder(app, fileName, "main", option);
}
/**
* Generates the test path for a given application name, file name, option, and configuration.
*
* @param app the application
* @param name the name of the file
* @param option the GuidesOption to consider
* @param configuration the GuidesConfiguration to use
* @return the generated test path
*/
@NonNull
static String testPath(@NonNull App app,
@NonNull String name,
@NonNull GuidesOption option,
@NonNull GuidesConfiguration configuration) {
String fileName = name;
if (option.getTestFramework() != null) {
if (name.endsWith("Test")) {
fileName = name.substring(0, name.indexOf("Test"));
fileName += option.getTestFramework() == SPOCK ? "Spec" : "Test";
}
}
return pathByFolder(app, fileName, "test", option);
}
The text was updated successfully, but these errors were encountered:
Feature description
Temporarily removed, to add back
The text was updated successfully, but these errors were encountered: