Skip to content

Commit

Permalink
compile
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Dec 21, 2024
1 parent aab1968 commit 0886ada
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public abstract class AbstractSurefireReport extends AbstractMavenReport {
/**
* Internationalization component
*/
private final I18N i18n;
private I18N i18n;

protected AbstractSurefireReport(I18N i18n) {
this.i18n = i18n;
Expand Down Expand Up @@ -262,8 +262,9 @@ private List<MavenProject> getProjectsWithoutRoot() {
protected String getI18nString(Locale locale, String key) {
return getI18N(locale).getString("surefire-report", locale, "report." + getI18Nsection() + '.' + key);
}

/**
* @param locale The local.
* @param locale ]ehe locale
* @return I18N for the locale
*/
protected I18N getI18N(Locale locale) {
Expand All @@ -280,6 +281,7 @@ protected I18N getI18N(Locale locale) {

return i18n;
}

/**
* @return The according string for the section.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.codehaus.plexus.i18n.I18N;

import javax.inject.Inject;

/**
* Creates a nicely formatted Surefire Test Report in html format.
Expand All @@ -34,4 +37,11 @@
@Mojo(name = "report-only")
@Execute(phase = LifecyclePhase.NONE)
@SuppressWarnings("unused")
public class SurefireOnlyReport extends SurefireReport {}
public class SurefireOnlyReport extends SurefireReport {

@Inject
public SurefireOnlyReport( I18N i18n) {
super(i18n);
}

}

0 comments on commit 0886ada

Please sign in to comment.