[BAEL-4264] Surefire and Failsafe comparison (#10968)
* [BAEL-4264] Surefire and Failsafe comparison * [BAEL-4264] Update tests * [BAEL-4264] Move code to different module * [BAEL-4264] Rename test Co-authored-by: uzma khan <uzma.khan@nominet.uk>
This commit is contained in:
parent
2c9bb8f04d
commit
d500209eeb
@ -6,6 +6,7 @@
|
|||||||
<artifactId>maven-integration-test</artifactId>
|
<artifactId>maven-integration-test</artifactId>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
<name>maven-integration-test</name>
|
<name>maven-integration-test</name>
|
||||||
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.baeldung</groupId>
|
<groupId>com.baeldung</groupId>
|
||||||
@ -116,7 +117,9 @@
|
|||||||
<goal>verify</goal>
|
<goal>verify</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- configuration similar to surefire -->
|
<includes>
|
||||||
|
<include>**/*IntegrationTest</include>
|
||||||
|
</includes>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.baeldung.maven.it;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
|
||||||
|
class FailsafeBuildPhaseIntegrationTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void whenTestExecutes_thenPreAndPostIntegrationBuildPhasesAreExecuted() {
|
||||||
|
assertTrue(true);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user