[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>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>maven-integration-test</name>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<parent>
|
||||
<groupId>com.baeldung</groupId>
|
||||
|
@ -116,7 +117,9 @@
|
|||
<goal>verify</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<!-- configuration similar to surefire -->
|
||||
<includes>
|
||||
<include>**/*IntegrationTest</include>
|
||||
</includes>
|
||||
</configuration>
|
||||
</execution>
|
||||
</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…
Reference in New Issue