Skip to content

Commit 4584ebb

Browse files
michael-oslawekjaranowski
authored andcommitted
[SUREFIRE-2226] Upgrade to Maven Verifier 2.0.0-M1
1 parent 5aa3515 commit 4584ebb

30 files changed

+56
-53
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
<!-- Do not upgrade, needs code changes -->
195195
<groupId>org.apache.maven.shared</groupId>
196196
<artifactId>maven-verifier</artifactId>
197-
<version>1.8.0</version>
197+
<version>2.0.0-M1</version>
198198
</dependency>
199199
<dependency>
200200
<groupId>org.codehaus.plexus</groupId>

surefire-its/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@
5353
<artifactId>maven-verifier</artifactId>
5454
<scope>test</scope>
5555
</dependency>
56+
<dependency>
57+
<groupId>org.hamcrest</groupId>
58+
<artifactId>hamcrest</artifactId>
59+
<version>2.2</version>
60+
<scope>test</scope>
61+
</dependency>
5662
<dependency>
5763
<groupId>org.apache.maven</groupId>
5864
<artifactId>maven-settings</artifactId>
@@ -192,6 +198,7 @@
192198
<configuration>
193199
<skipTests>${skipTests}</skipTests>
194200
<runOrder>alphabetical</runOrder>
201+
<forkCount>1C</forkCount>
195202
<threadCount>1</threadCount>
196203
<forkCount>1C</forkCount>
197204
<rerunFailingTestsCount>1</rerunFailingTestsCount>

surefire-its/src/test/java/org/apache/maven/surefire/its/JUnit47RerunFailingTestWithCucumberIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import java.util.ArrayList;
2222

23-
import org.apache.maven.it.VerificationException;
23+
import org.apache.maven.shared.verifier.VerificationException;
2424
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
2525
import org.apache.maven.surefire.its.fixture.SurefireLauncher;
2626
import org.junit.Test;

surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformEnginesIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import java.util.ArrayList;
2222
import java.util.List;
2323

24-
import org.apache.maven.it.VerificationException;
24+
import org.apache.maven.shared.verifier.VerificationException;
2525
import org.apache.maven.surefire.its.fixture.OutputValidator;
2626
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
2727
import org.junit.Test;

surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformStreamCorruptionIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import java.util.List;
2222

23-
import org.apache.maven.it.VerificationException;
23+
import org.apache.maven.shared.verifier.VerificationException;
2424
import org.apache.maven.surefire.its.fixture.OutputValidator;
2525
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
2626
import org.junit.Ignore;

surefire-its/src/test/java/org/apache/maven/surefire/its/MultiModuleProjectWithJPMSIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import java.util.List;
2222

23-
import org.apache.maven.it.VerificationException;
23+
import org.apache.maven.shared.verifier.VerificationException;
2424
import org.apache.maven.surefire.its.fixture.AbstractJava9PlusIT;
2525
import org.apache.maven.surefire.its.fixture.OutputValidator;
2626
import org.junit.Test;

surefire-its/src/test/java/org/apache/maven/surefire/its/PojoSimpleIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
package org.apache.maven.surefire.its;
2020

21-
import org.apache.maven.it.VerificationException;
21+
import org.apache.maven.shared.verifier.VerificationException;
2222
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
2323
import org.junit.Test;
2424

surefire-its/src/test/java/org/apache/maven/surefire/its/RunOrderIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import java.util.Arrays;
2222
import java.util.Calendar;
2323

24-
import org.apache.maven.it.VerificationException;
24+
import org.apache.maven.shared.verifier.VerificationException;
2525
import org.apache.maven.surefire.its.fixture.OutputValidator;
2626
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
2727
import org.apache.maven.surefire.its.fixture.SurefireLauncher;

surefire-its/src/test/java/org/apache/maven/surefire/its/Surefire1602IT.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
package org.apache.maven.surefire.its;
2020

21-
import org.apache.maven.it.VerificationException;
21+
import org.apache.maven.shared.verifier.VerificationException;
2222
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
2323
import org.apache.maven.surefire.its.fixture.SurefireLauncher;
2424
import org.junit.Test;
@@ -32,7 +32,11 @@ public class Surefire1602IT extends SurefireJUnit4IntegrationTestCase {
3232
@Test
3333
public void nonCanonicalPath() throws VerificationException {
3434
SurefireLauncher launcher = unpack("/surefire-1602");
35+
launcher.setLogFileName("log-install.txt");
3536
launcher.executeInstall();
37+
launcher.reset();
38+
39+
launcher.setLogFileName("log-test.txt");
3640
launcher.addGoal("--file").addGoal("./integration-tests/pom.xml").executeTest();
3741
launcher.getSubProjectValidator("integration-tests").assertTestSuiteResults(1, 0, 0, 0);
3842
}

surefire-its/src/test/java/org/apache/maven/surefire/its/WorkingDirectoryIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.io.IOException;
2424
import java.util.Properties;
2525

26-
import org.apache.maven.it.VerificationException;
26+
import org.apache.maven.shared.verifier.VerificationException;
2727
import org.apache.maven.surefire.its.fixture.OutputValidator;
2828
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
2929
import org.apache.maven.surefire.its.fixture.SurefireLauncher;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy