diff --git a/maven-project/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java b/maven-project/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java index 62d2373b4e..fd607da3f4 100644 --- a/maven-project/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java +++ b/maven-project/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java @@ -49,7 +49,7 @@ public abstract class AbstractMavenProjectTestCase { super.setUp(); - if ( getContainer().hasComponent( MavenProjectBuilder.ROLE, "test" ) ) + if ( getContainer().hasComponent( MavenProjectBuilder.class, "test" ) ) { projectBuilder = lookup( MavenProjectBuilder.class, "test" ); }