diff --git a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/ScmCommitPreparationPhaseTest.java b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/ScmCommitPreparationPhaseTest.java index ba500676f..f040bac22 100644 --- a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/ScmCommitPreparationPhaseTest.java +++ b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/ScmCommitPreparationPhaseTest.java @@ -151,7 +151,7 @@ public void testCommitAlternateMessage() Collections.singletonList( new ScmFile( rootProject.getFile().getPath(), ScmFileStatus.CHECKED_IN ) ) ) ); - ScmManagerStub stub = (ScmManagerStub) lookup( ScmManager.ROLE ); + ScmManagerStub stub = (ScmManagerStub) lookup( ScmManager.class ); stub.setScmProvider( scmProviderMock ); // execute @@ -264,7 +264,7 @@ public void testCommitDevelopmentAlternateMessage() Collections.singletonList( new ScmFile( rootProject.getFile().getPath(), ScmFileStatus.CHECKED_IN ) ) ) ); - ScmManagerStub stub = (ScmManagerStub) lookup( ScmManager.ROLE ); + ScmManagerStub stub = (ScmManagerStub) lookup( ScmManager.class ); stub.setScmProvider( scmProviderMock ); // execute @@ -548,4 +548,4 @@ private static ReleaseDescriptorBuilder createReleaseDescriptorBuilder() builder.setWorkingDirectory( getTestFile( "target/test/checkout" ).getAbsolutePath() ); return builder; } -} \ No newline at end of file +}