Skip to content

Commit

Permalink
Remove use of plexus-build-api (more)
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed Oct 30, 2022
1 parent 715443b commit 23dba89
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import org.mockito.invocation.InvocationOnMock;
import org.mockito.runners.MockitoJUnitRunner;
import org.mockito.stubbing.Answer;
import org.sonatype.plexus.build.incremental.BuildContext;

import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.times;
Expand Down Expand Up @@ -70,9 +69,6 @@ public class AbstractFilterSourcesMojoTest
@Spy
private File outputDirectory = resolve( new File( "target" ), "generated-sources", "java-templates" );

@Mock
private BuildContext buildContext;

@InjectMocks
private AbstractFilterSourcesMojo mojo = new FilterSourcesMojo();

Expand Down Expand Up @@ -124,7 +120,6 @@ public void testExecute()

// then
verify( mavenResourcesFiltering, times( 2 ) ).filterResources( any( MavenResourcesExecution.class ) );
verify( buildContext, times( 1 ) ).refresh( outputDirectory );
verify( project, times( 2 ) ).addCompileSourceRoot( outputDirectory.getAbsolutePath() );
}

Expand Down

0 comments on commit 23dba89

Please sign in to comment.