Projects
Mega:24.03:SP1:Everything
maven-reporting-impl
_service:tar_scm:0001-Remove-dependency-on-juni...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0001-Remove-dependency-on-junit-addons.patch of Package maven-reporting-impl
From 2f414c5566febf44beb77c43340eafccad1547e2 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski <mizdebsk@redhat.com> Date: Tue, 17 Jul 2018 11:57:16 +0200 Subject: [PATCH] Remove dependency on junit-addons --- pom.xml | 6 ------ .../apache/maven/reporting/AbstractMavenReportRenderer.java | 2 +- .../maven/reporting/AbstractMavenReportRendererTest.java | 10 ++-------- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/pom.xml b/pom.xml index 239742e..dc75ecd 100644 --- a/pom.xml +++ b/pom.xml @@ -135,12 +135,6 @@ <version>3.8.2</version> <scope>test</scope> </dependency> - <dependency> - <groupId>junit-addons</groupId> - <artifactId>junit-addons</artifactId> - <version>1.4</version> - <scope>test</scope> - </dependency> </dependencies> <build> diff --git a/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java b/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java index 6f954ae..c11acd3 100644 --- a/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java +++ b/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java @@ -597,7 +597,7 @@ public abstract class AbstractMavenReportRenderer * @param text a text with or without the pattern <code>{text, url}</code> * @return a map of text/href */ - private static List<String> applyPattern( String text ) + static List<String> applyPattern( String text ) { if ( StringUtils.isEmpty( text ) ) { diff --git a/src/test/java/org/apache/maven/reporting/AbstractMavenReportRendererTest.java b/src/test/java/org/apache/maven/reporting/AbstractMavenReportRendererTest.java index cdb9299..e8dce8f 100644 --- a/src/test/java/org/apache/maven/reporting/AbstractMavenReportRendererTest.java +++ b/src/test/java/org/apache/maven/reporting/AbstractMavenReportRendererTest.java @@ -24,7 +24,8 @@ import java.util.List; import junit.framework.Assert; import junit.framework.TestCase; -import junitx.util.PrivateAccessor; + +import static org.apache.maven.reporting.AbstractMavenReportRenderer.applyPattern; /** * Test case for some public method in AbstractMavenReportRenderer. @@ -32,13 +33,6 @@ import junitx.util.PrivateAccessor; public class AbstractMavenReportRendererTest extends TestCase { - private static List<String> applyPattern( String pattern ) - throws Throwable - { - return (List<String>) PrivateAccessor.invoke( AbstractMavenReportRenderer.class, "applyPattern", - new Class[] { String.class }, new Object[] { pattern } ); - } - private static void checkPattern( String pattern, String[] expectedResult ) throws Throwable { List<String> result = applyPattern( pattern ); -- 2.14.3
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2