This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch MNG-7035-maven5
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 4ec4c131e7e3d0688cfca64a8f71a89651ac6ce4
Author: Guillaume Nodet <gno...@gmail.com>
AuthorDate: Fri Jan 8 09:01:30 2021 +0100

    Fix problems related to rebase after MNG-6909
---
 .../org/apache/maven/project/ProjectClasspathTest.java |  2 +-
 .../test/java/org/apache/maven/DefaultMavenTest.java   | 18 ++++++++++++++++++
 .../rtinfo/internal/DefaultRuntimeInformationTest.java |  9 +++++++++
 3 files changed, 28 insertions(+), 1 deletion(-)

diff --git 
a/maven-compat/src/test/java/org/apache/maven/project/ProjectClasspathTest.java 
b/maven-compat/src/test/java/org/apache/maven/project/ProjectClasspathTest.java
index a056522..79f7a9a 100644
--- 
a/maven-compat/src/test/java/org/apache/maven/project/ProjectClasspathTest.java
+++ 
b/maven-compat/src/test/java/org/apache/maven/project/ProjectClasspathTest.java
@@ -54,7 +54,7 @@ public class ProjectClasspathTest
     }
 
     @Override
-    protected void setUp()
+    public void setUp()
             throws Exception
     {
         super.setUp();
diff --git a/maven-core/src/test/java/org/apache/maven/DefaultMavenTest.java 
b/maven-core/src/test/java/org/apache/maven/DefaultMavenTest.java
index 7db406c..df8fa1b 100644
--- a/maven-core/src/test/java/org/apache/maven/DefaultMavenTest.java
+++ b/maven-core/src/test/java/org/apache/maven/DefaultMavenTest.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.maven;
 
 import java.io.File;
diff --git 
a/maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java
 
b/maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java
index 5ed7863..09fbb4d 100644
--- 
a/maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java
+++ 
b/maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java
@@ -24,6 +24,7 @@ import org.codehaus.plexus.ContainerConfiguration;
 import org.codehaus.plexus.DefaultPlexusContainer;
 import org.codehaus.plexus.PlexusConstants;
 import org.apache.maven.PlexusTestCase;
+import org.junit.Before;
 import org.junit.Test;
 
 import static org.junit.Assert.assertFalse;
@@ -50,6 +51,14 @@ public class DefaultRuntimeInformationTest
     }
 
     @Override
+    @Before
+    public void setUp() throws Exception
+    {
+        super.setUp();
+        getContainer();
+    }
+
+    @Override
     protected synchronized void setupContainer()
     {
         super.setupContainer();

Reply via email to