4242 * @author <a href="mailto:[email protected] ">Allan Ramirez</a> 4343 */
4444@ SuppressWarnings ("checkstyle:linelength" )
45- public class SurefireReportMojoTest extends AbstractMojoTestCase {
45+ public class SurefireReportTest extends AbstractMojoTestCase {
4646 private ArtifactStubFactory artifactStubFactory ;
4747
4848 // Can be removed with Doxia 2.0.0
@@ -64,8 +64,8 @@ protected void tearDown() throws Exception {
6464 super .tearDown ();
6565 }
6666
67- protected SurefireReportMojo createReportMojo (File pluginXmlFile ) throws Exception {
68- SurefireReportMojo mojo = (SurefireReportMojo ) lookupMojo ("report" , pluginXmlFile );
67+ protected SurefireReport createReportMojo (File pluginXmlFile ) throws Exception {
68+ SurefireReport mojo = (SurefireReport ) lookupMojo ("report" , pluginXmlFile );
6969 assertNotNull ("Mojo found." , mojo );
7070
7171 LegacySupport legacySupport = lookup (LegacySupport .class );
@@ -82,7 +82,7 @@ protected SurefireReportMojo createReportMojo(File pluginXmlFile) throws Excepti
8282
8383 public void testBasicSurefireReport () throws Exception {
8484 File testPom = new File (getUnitBaseDir (), "basic-surefire-report-test/plugin-config.xml" );
85- SurefireReportMojo mojo = createReportMojo (testPom );
85+ SurefireReport mojo = createReportMojo (testPom );
8686 File outputDir = (File ) getVariableValueFromObject (mojo , "outputDirectory" );
8787 boolean showSuccess = (Boolean ) getVariableValueFromObject (mojo , "showSuccess" );
8888 File reportsDir = (File ) getVariableValueFromObject (mojo , "reportsDirectory" );
@@ -119,7 +119,7 @@ private File getUnitBaseDir() throws UnsupportedEncodingException {
119119
120120 public void testBasicSurefireReportIfShowSuccessIsFalse () throws Exception {
121121 File testPom = new File (getUnitBaseDir (), "basic-surefire-report-success-false/plugin-config.xml" );
122- SurefireReportMojo mojo = createReportMojo (testPom );
122+ SurefireReport mojo = createReportMojo (testPom );
123123 boolean showSuccess = (Boolean ) getVariableValueFromObject (mojo , "showSuccess" );
124124 assertFalse (showSuccess );
125125 mojo .execute ();
@@ -134,7 +134,7 @@ public void testBasicSurefireReportIfShowSuccessIsFalse() throws Exception {
134134
135135 public void testBasicSurefireReportIfLinkXrefIsFalse () throws Exception {
136136 File testPom = new File (getUnitBaseDir (), "basic-surefire-report-linkxref-false/plugin-config.xml" );
137- SurefireReportMojo mojo = createReportMojo (testPom );
137+ SurefireReport mojo = createReportMojo (testPom );
138138 boolean linkXRef = (Boolean ) getVariableValueFromObject (mojo , "linkXRef" );
139139 assertFalse (linkXRef );
140140 mojo .execute ();
@@ -149,7 +149,7 @@ public void testBasicSurefireReportIfLinkXrefIsFalse() throws Exception {
149149
150150 public void testBasicSurefireReportIfReportingIsNull () throws Exception {
151151 File testPom = new File (getUnitBaseDir (), "basic-surefire-report-reporting-null/plugin-config.xml" );
152- SurefireReportMojo mojo = createReportMojo (testPom );
152+ SurefireReport mojo = createReportMojo (testPom );
153153 mojo .execute ();
154154 File report =
155155 new File (getBasedir (), "target/site/unit/basic-surefire-report-reporting-null/surefire-report.html" );
@@ -163,7 +163,7 @@ public void testBasicSurefireReportIfReportingIsNull() throws Exception {
163163 @ SuppressWarnings ("checkstyle:methodname" )
164164 public void testBasicSurefireReport_AnchorTestCases () throws Exception {
165165 File testPom = new File (getUnitBaseDir (), "basic-surefire-report-anchor-test-cases/plugin-config.xml" );
166- SurefireReportMojo mojo = createReportMojo (testPom );
166+ SurefireReport mojo = createReportMojo (testPom );
167167 mojo .execute ();
168168 File report =
169169 new File (getBasedir (), "target/site/unit/basic-surefire-report-anchor-test-cases/surefire-report.html" );
@@ -180,7 +180,7 @@ public void testBasicSurefireReport_AnchorTestCases() throws Exception {
180180
181181 public void testSurefireReportSingleError () throws Exception {
182182 File testPom = new File (getUnitBaseDir (), "surefire-report-single-error/plugin-config.xml" );
183- SurefireReportMojo mojo = createReportMojo (testPom );
183+ SurefireReport mojo = createReportMojo (testPom );
184184 mojo .execute ();
185185 File report = new File (getBasedir (), "target/site/unit/surefire-report-single-error/surefire-report.html" );
186186 assertTrue (report .exists ());
@@ -267,7 +267,7 @@ public void testSurefireReportSingleError() throws Exception {
267267
268268 public void testSurefireReportNestedClassTrimStackTrace () throws Exception {
269269 File testPom = new File (getUnitBaseDir (), "surefire-report-nestedClass-trimStackTrace/plugin-config.xml" );
270- SurefireReportMojo mojo = createReportMojo (testPom );
270+ SurefireReport mojo = createReportMojo (testPom );
271271 mojo .execute ();
272272 File report = new File (
273273 getBasedir (), "target/site/unit/surefire-report-nestedClass-trimStackTrace/surefire-report.html" );
@@ -331,7 +331,7 @@ public void testSurefireReportNestedClassTrimStackTrace() throws Exception {
331331
332332 public void testSurefireReportNestedClass () throws Exception {
333333 File testPom = new File (getUnitBaseDir (), "surefire-report-nestedClass/plugin-config.xml" );
334- SurefireReportMojo mojo = createReportMojo (testPom );
334+ SurefireReport mojo = createReportMojo (testPom );
335335 mojo .execute ();
336336 File report = new File (getBasedir (), "target/site/unit/surefire-report-nestedClass/surefire-report.html" );
337337 assertTrue (report .exists ());
@@ -418,7 +418,7 @@ public void testSurefireReportNestedClass() throws Exception {
418418
419419 public void testSurefireReportEnclosedTrimStackTrace () throws Exception {
420420 File testPom = new File (getUnitBaseDir (), "surefire-report-enclosed-trimStackTrace/plugin-config.xml" );
421- SurefireReportMojo mojo = createReportMojo (testPom );
421+ SurefireReport mojo = createReportMojo (testPom );
422422 mojo .execute ();
423423 File report =
424424 new File (getBasedir (), "target/site/unit/surefire-report-enclosed-trimStackTrace/surefire-report.html" );
@@ -482,7 +482,7 @@ public void testSurefireReportEnclosedTrimStackTrace() throws Exception {
482482
483483 public void testSurefireReportEnclosed () throws Exception {
484484 File testPom = new File (getUnitBaseDir (), "surefire-report-enclosed/plugin-config.xml" );
485- SurefireReportMojo mojo = createReportMojo (testPom );
485+ SurefireReport mojo = createReportMojo (testPom );
486486 mojo .execute ();
487487 File report = new File (getBasedir (), "target/site/unit/surefire-report-enclosed/surefire-report.html" );
488488 assertTrue (report .exists ());
@@ -579,7 +579,7 @@ public void testSurefireReportEnclosed() throws Exception {
579579
580580 public void testCustomTitleAndDescriptionReport () throws Exception {
581581 File testPom = new File (getUnitBaseDir (), "surefire-1183/plugin-config.xml" );
582- SurefireReportMojo mojo = createReportMojo (testPom );
582+ SurefireReport mojo = createReportMojo (testPom );
583583
584584 File outputDir = (File ) getVariableValueFromObject (mojo , "outputDirectory" );
585585 String outputName = (String ) getVariableValueFromObject (mojo , "outputName" );
0 commit comments