Skip to content

Commit

Permalink
Use class-based lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed May 26, 2022
1 parent dbdae87 commit e4abd0f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -548,4 +548,4 @@ private static ReleaseDescriptorBuilder createReleaseDescriptorBuilder()
builder.setWorkingDirectory( getTestFile( "target/test/checkout" ).getAbsolutePath() );
return builder;
}
}
}

0 comments on commit e4abd0f

Please sign in to comment.