Skip to content

Commit

Permalink
Remove invocations of now deprecated methods we want to delete (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo authored Nov 10, 2024
1 parent 263f65b commit 7ae0aba
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public void testCollectTestEnvironment() throws Exception {
assertNotNull(mojo.getProject());
MavenProject project = mojo.getProject();

mojo.setSilent(true);
Set<Artifact> artifacts = this.stubFactory.getScopedArtifacts();
Set<Artifact> directArtifacts = this.stubFactory.getReleaseAndSnapshotArtifacts();
artifacts.addAll(directArtifacts);
Expand All @@ -83,7 +82,6 @@ public void testCollectTestEnvironment_excludeTransitive() throws Exception {
assertNotNull(mojo.getProject());
MavenProject project = mojo.getProject();

mojo.setSilent(true);
Set<Artifact> artifacts = this.stubFactory.getScopedArtifacts();
Set<Artifact> directArtifacts = this.stubFactory.getReleaseAndSnapshotArtifacts();
artifacts.addAll(directArtifacts);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ protected void setUp() throws Exception {
File testPom = new File(getBasedir(), "target/test-classes/unit/copy-test/plugin-config.xml");
mojo = (CopyMojo) lookupMojo("copy", testPom);
mojo.setOutputDirectory(new File(this.testDir, "outputDirectory"));
mojo.setSilent(true);

assertNotNull(mojo);
assertNotNull(mojo.getProject());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ protected void setUp() throws Exception {
mojo = (UnpackMojo) lookupMojo("unpack", testPom);
mojo.setOutputDirectory(new File(this.testDir, "outputDirectory"));
mojo.setMarkersDirectory(new File(this.testDir, "markers"));
mojo.setSilent(true);

assertNotNull(mojo);
assertNotNull(mojo.getProject());
Expand Down Expand Up @@ -477,7 +476,6 @@ public void testUnpackOverWriteSnapshot() throws Exception {
public void testUnpackOverWriteIfNewer() throws Exception {
final long now = System.currentTimeMillis();

mojo.setSilent(false);
stubFactory.setCreateFiles(true);
Artifact artifact = stubFactory.getSnapshotArtifact();
assertTrue(artifact.getFile().setLastModified(now - 20000));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public void testResolveTestEnvironment() throws Exception {
assertNotNull(mojo.getProject());
MavenProject project = mojo.getProject();

mojo.setSilent(true);
Set<Artifact> artifacts = this.stubFactory.getScopedArtifacts();
Set<Artifact> directArtifacts = this.stubFactory.getReleaseAndSnapshotArtifacts();
artifacts.addAll(directArtifacts);
Expand Down

0 comments on commit 7ae0aba

Please sign in to comment.