@@ -49,7 +49,7 @@ public abstract class AbstractProjectInfoTestCase
49
49
extends AbstractMojoTestCase
50
50
{
51
51
private ArtifactStubFactory artifactStubFactory ;
52
-
52
+
53
53
/**
54
54
* The default locale is English.
55
55
*/
@@ -77,7 +77,7 @@ protected void setUp()
77
77
78
78
artifactStubFactory = new DependencyArtifactStubFactory ( getTestFile ( "target" ), true , false );
79
79
artifactStubFactory .getWorkingDir ().mkdirs ();
80
-
80
+
81
81
// Set the default Locale
82
82
Locale .setDefault ( DEFAULT_LOCALE );
83
83
}
@@ -180,7 +180,7 @@ protected AbstractProjectInfoReport createReportMojo( String goal, File pluginXm
180
180
{
181
181
AbstractProjectInfoReport mojo = (AbstractProjectInfoReport ) lookupMojo ( goal , pluginXmlFile );
182
182
assertNotNull ( "Mojo found." , mojo );
183
-
183
+
184
184
LegacySupport legacySupport = lookup ( LegacySupport .class );
185
185
legacySupport .setSession ( newMavenSession ( new MavenProjectStub () ) );
186
186
DefaultRepositorySystemSession repoSession =
@@ -199,11 +199,10 @@ protected File generateReport( AbstractProjectInfoReport mojo, File pluginXmlFil
199
199
mojo .execute ();
200
200
201
201
ProjectBuilder builder = lookup ( ProjectBuilder .class );
202
-
202
+
203
203
ProjectBuildingRequest buildingRequest = new DefaultProjectBuildingRequest ();
204
204
buildingRequest .setRepositorySession ( lookup ( LegacySupport .class ).getRepositorySession () );
205
205
206
- assertNotNull ( "Local repository" , mojo .localRepository );
207
206
testMavenProject = builder .build ( pluginXmlFile , buildingRequest ).getProject ();
208
207
209
208
File outputDir = mojo .getReportOutputDirectory ();
0 commit comments