From d725bd92383d1e89db5ba59bd7a1289468f38b29 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Thu, 6 Aug 2009 11:48:17 +0000 Subject: [PATCH] o Fixed test stub to be more realistic git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@801613 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/project/TestProjectBuilder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maven-core/src/test/java/org/apache/maven/project/TestProjectBuilder.java b/maven-core/src/test/java/org/apache/maven/project/TestProjectBuilder.java index 014d1e86a7..843b8ae864 100644 --- a/maven-core/src/test/java/org/apache/maven/project/TestProjectBuilder.java +++ b/maven-core/src/test/java/org/apache/maven/project/TestProjectBuilder.java @@ -35,7 +35,9 @@ public class TestProjectBuilder } if ( artifact.getFile() == null ) { - return new MavenProject(); + MavenProject project = new MavenProject(); + project.setArtifact( artifact ); + return project; } return build( artifact.getFile(), request ); }