Skip to content

Commit

Permalink
Fixing AbstractGeneratorTestCase#testGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
rfscholte committed Oct 26, 2018
1 parent 8ae96cf commit 1909468
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

import java.io.File;
import java.lang.reflect.Constructor;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
Expand Down Expand Up @@ -94,8 +95,7 @@ public void testGenerator()

pluginDescriptor.setDependencies( Collections.singletonList( dependency ) );

File destinationDirectory = new File( System.getProperty( "java.io.tmpdir" ), "testGenerator-outDir" );
FileUtils.deleteDirectory( destinationDirectory );
File destinationDirectory = Files.createTempDirectory( "testGenerator-outDir" ).toFile();
destinationDirectory.mkdir();

MavenProject mavenProject = new MavenProject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ protected void validate( File destinationDirectory )
// Dependencies
// ----------------------------------------------------------------------

@SuppressWarnings( "unchecked" )
List<ComponentDependency> dependencies = pluginDescriptor.getDependencies();

checkDependency( "testGroup", "testArtifact", "0.0.0", dependencies.get( 0 ) );
Expand Down

0 comments on commit 1909468

Please sign in to comment.