Skip to content

Commit

Permalink
[SUREFIRE-2044] Upgrade Maven Verifier to 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Apr 5, 2022
1 parent b1615a9 commit 5ff5a40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
12 changes: 1 addition & 11 deletions pom.xml
Expand Up @@ -230,17 +230,7 @@
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-verifier</artifactId>
<version>1.7.2</version>
<exclusions>
<exclusion>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-shared-utils</artifactId>
</exclusion>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
<version>1.8.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
Expand Down
Expand Up @@ -186,9 +186,9 @@ public MavenLauncher addEnvVar( String key, String value )
return this;
}

public MavenLauncher assertNotPresent( String subFile )
public MavenLauncher verifyFileNotPresent( String subFile ) throws VerificationException
{
getVerifier().assertFileNotPresent( getValidator().getSubFile( subFile ).getAbsolutePath() );
getVerifier().verifyFileNotPresent( getValidator().getSubFile( subFile ).getAbsolutePath() );
return this;
}

Expand Down
Expand Up @@ -104,7 +104,7 @@ private SurefireLauncher unpack()
throws VerificationException, IOException
{
final SurefireLauncher unpack = unpack( "surefire-772-no-failsafe-reports" );
unpack.maven().deleteSiteDir().skipClean().failNever().assertNotPresent( "site" );
unpack.maven().deleteSiteDir().skipClean().failNever().verifyFileNotPresent( "site" );
return unpack;
}

Expand Down

0 comments on commit 5ff5a40

Please sign in to comment.