Skip to content

Commit

Permalink
Move ITs to JDK 8 / JUnit 5
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jul 4, 2022
1 parent 31dff13 commit e340a71
Show file tree
Hide file tree
Showing 684 changed files with 2,716 additions and 977 deletions.
19 changes: 8 additions & 11 deletions core-it-suite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,12 @@ under the License.

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<!-- NOTE: Use compile scope for transitivity. -->
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>1.3</version>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.8.0</version>
<scope>test</scope>

<!-- NOTE: Use compile scope for transitivity. -->
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
Expand Down Expand Up @@ -166,9 +162,10 @@ under the License.
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/IntegrationTestSuite.java</include>
<include>**/MavenIT*.java</include>
</includes>
<forkMode>never</forkMode>
<forkCount>1</forkCount>
<reuseForks>true</reuseForks>
<skip>true</skip>
<systemProperties>
<property>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import java.io.File;
import java.io.FileInputStream;
import java.security.DigestInputStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -40,6 +41,7 @@ public MavenIT0008SimplePluginTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0008()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -38,6 +39,7 @@ public MavenIT0009GoalConfigurationTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0009()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -39,6 +40,7 @@ public MavenIT0010DependencyClosureResolutionTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0010()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -37,6 +38,7 @@ public MavenIT0011DefaultVersionByDependencyManagementTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0011()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -36,6 +37,7 @@ public MavenIT0012PomInterpolationTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0012()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -38,6 +39,7 @@ public MavenIT0018DependencyManagementTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0018()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -36,6 +37,7 @@ public MavenIT0019PluginVersionMngtBySuperPomTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0019()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -37,6 +38,7 @@ public MavenIT0021PomProfileTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0021()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -37,6 +38,7 @@ public MavenIT0023SettingsProfileTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0023()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -43,6 +44,7 @@ public MavenIT0024MultipleGoalExecutionsTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0024()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -42,6 +43,7 @@ public MavenIT0025MultipleExecutionLevelConfigsTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0025()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -37,6 +38,7 @@ public MavenIT0030DepPomDepMngtInheritanceTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0030()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -36,6 +37,7 @@ public MavenIT0032MavenPrerequisiteTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0032()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -42,6 +43,7 @@ public MavenIT0036ReleasePomTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0036()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -42,6 +43,7 @@ public MavenIT0037AlternatePomFileSameDirTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0037()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -42,6 +43,7 @@ public MavenIT0038AlternatePomFileDifferentDirTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0038()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -44,6 +45,7 @@ public MavenIT0039ReleasePomInReactorTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0039()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -43,6 +44,7 @@ public MavenIT0040PackagingFromPluginExtensionTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0040()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -42,6 +43,7 @@ public MavenIT0041ArtifactTypeFromPluginExtensionTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0041()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -37,6 +38,7 @@ public MavenIT0051ReleaseProfileTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0051()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -37,6 +38,7 @@ public MavenIT0052ReleaseProfileTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0052()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.junit.jupiter.api.Test;
import org.apache.maven.it.util.ResourceExtractor;

import java.io.File;
Expand All @@ -37,6 +38,7 @@ public MavenIT0056MultipleGoalExecutionsTest()
*
* @throws Exception in case of failure
*/
@Test
public void testit0056()
throws Exception
{
Expand Down
Loading

0 comments on commit e340a71

Please sign in to comment.