Skip to content

Commit

Permalink
[SUREFIRE-2251] [REGRESSION] java.lang.NoSuchMethodException: org.apa…
Browse files Browse the repository at this point in the history
…che.maven.plugin.surefire.StartupReportConfiguration.<init>

This closes #761
  • Loading branch information
michael-o committed Jul 15, 2024
1 parent daa011b commit a93783a
Showing 1 changed file with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ public final class StartupReportConfiguration {

private StatisticsReporter statisticsReporter;

/**
* @since 3.3.1
*/
@SuppressWarnings("checkstyle:parameternumber")
public StartupReportConfiguration(
boolean useFile,
Expand Down Expand Up @@ -140,6 +143,46 @@ public StartupReportConfiguration(
this.testsetReporter = testsetReporter;
}

@SuppressWarnings("checkstyle:parameternumber")
@Deprecated
public StartupReportConfiguration(
boolean useFile,
boolean printSummary,
String reportFormat,
boolean redirectTestOutputToFile,
@Nonnull File reportsDirectory,
boolean trimStackTrace,
String reportNameSuffix,
File statisticsFile,
boolean requiresRunHistory,
int rerunFailingTestsCount,
String xsdSchemaLocation,
String encoding,
boolean isForking,
SurefireStatelessReporter xmlReporter,
SurefireConsoleOutputReporter consoleOutputReporter,
SurefireStatelessTestsetInfoReporter testsetReporter) {
this(
useFile,
printSummary,
reportFormat,
redirectTestOutputToFile,
reportsDirectory,
trimStackTrace,
reportNameSuffix,
statisticsFile,
requiresRunHistory,
rerunFailingTestsCount,
xsdSchemaLocation,
encoding,
isForking,
true,
true,
xmlReporter,
consoleOutputReporter,
testsetReporter);
}

public boolean isUseFile() {
return useFile;
}
Expand Down

0 comments on commit a93783a

Please sign in to comment.