You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2024/12/30 16:20:00 UTC

(maven-changelog-plugin) branch deps created (now fbdeb88)

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

elharo pushed a change to branch deps
in repository https://gitbox.apache.org/repos/asf/maven-changelog-plugin.git


      at fbdeb88  Every test runs with a new test object

This branch includes the following new commits:

     new fbdeb88  Every test runs with a new test object

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(maven-changelog-plugin) 01/01: Every test runs with a new test object

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch deps
in repository https://gitbox.apache.org/repos/asf/maven-changelog-plugin.git

commit fbdeb888816bf0095bd08fa94a5a42d96f8e51ae
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Mon Dec 30 11:19:51 2024 -0500

    Every test runs with a new test object
---
 .../maven/plugins/changelog/ChangeLogReportTest.java | 20 +-------------------
 .../changelog/DeveloperActivityReportTest.java       | 20 +-------------------
 .../plugins/changelog/FileActivityReportTest.java    | 20 +-------------------
 3 files changed, 3 insertions(+), 57 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugins/changelog/ChangeLogReportTest.java b/src/test/java/org/apache/maven/plugins/changelog/ChangeLogReportTest.java
index 86c7bb7..7c2299d 100644
--- a/src/test/java/org/apache/maven/plugins/changelog/ChangeLogReportTest.java
+++ b/src/test/java/org/apache/maven/plugins/changelog/ChangeLogReportTest.java
@@ -36,25 +36,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
  * @author Edwin Punzalan
  */
 public class ChangeLogReportTest extends AbstractChangeLogReportTest {
-    private ScmManager scmManager;
-
-    /**
-     * {@inheritDoc}
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-
-        scmManager = new ScmManagerStub();
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-
-        scmManager = null;
-    }
+    private ScmManager scmManager = new ScmManagerStub();
 
     public void testNoSource() throws Exception {
         File pluginXmlFile = new File(getBasedir(), "src/test/plugin-configs/changelog/no-source-plugin-config.xml");
diff --git a/src/test/java/org/apache/maven/plugins/changelog/DeveloperActivityReportTest.java b/src/test/java/org/apache/maven/plugins/changelog/DeveloperActivityReportTest.java
index 3978a18..a869bee 100644
--- a/src/test/java/org/apache/maven/plugins/changelog/DeveloperActivityReportTest.java
+++ b/src/test/java/org/apache/maven/plugins/changelog/DeveloperActivityReportTest.java
@@ -28,25 +28,7 @@ import org.codehaus.plexus.util.FileUtils;
  * @author Edwin Punzalan
  */
 public class DeveloperActivityReportTest extends AbstractChangeLogReportTest {
-    private ScmManager scmManager;
-
-    /**
-     * {@inheritDoc}
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-
-        scmManager = new ScmManagerStub();
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-
-        scmManager = null;
-    }
+    private ScmManager scmManager = new ScmManagerStub();
 
     public void testNoSource() throws Exception {
         File pluginXmlFile = new File(getBasedir(), "src/test/plugin-configs/dev-activity/no-source-plugin-config.xml");
diff --git a/src/test/java/org/apache/maven/plugins/changelog/FileActivityReportTest.java b/src/test/java/org/apache/maven/plugins/changelog/FileActivityReportTest.java
index 17de5b0..fa75eab 100644
--- a/src/test/java/org/apache/maven/plugins/changelog/FileActivityReportTest.java
+++ b/src/test/java/org/apache/maven/plugins/changelog/FileActivityReportTest.java
@@ -28,25 +28,7 @@ import org.codehaus.plexus.util.FileUtils;
  * @author Edwin Punzalan
  */
 public class FileActivityReportTest extends AbstractChangeLogReportTest {
-    private ScmManager scmManager;
-
-    /**
-     * {@inheritDoc}
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-
-        scmManager = new ScmManagerStub();
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-
-        scmManager = null;
-    }
+    private ScmManager scmManager = new ScmManagerStub();
 
     public void testNoSource() throws Exception {
         File pluginXmlFile =