Skip to content
Commits on Source (8)
maven-replacer-plugin (1.5.3-3) unstable; urgency=medium
* Team upload.
* Fixed the tests to work with Mockito 2.x
* Standards-Version updated to 4.4.0
* Switch to debhelper level 11
* Use salsa.debian.org Vcs-* URLs
* Use the target/ directory as the user home directory for the tests
-- Emmanuel Bourg <ebourg@apache.org> Wed, 18 Sep 2019 10:30:55 +0200
maven-replacer-plugin (1.5.3-2) unstable; urgency=medium
* Team upload.
......
......@@ -3,19 +3,21 @@ Section: java
Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Uploaders: Timo Aaltonen <tjaalton@debian.org>
Build-Depends: debhelper (>= 10), default-jdk, maven-debian-helper (>= 1.5)
Build-Depends-Indep:
Build-Depends:
ant,
debhelper (>= 11),
default-jdk,
junit4,
libcommons-io-java,
libcommons-lang-java (>= 2.6),
libmaven-plugin-tools-java (>= 3.2),
libmaven3-core-java,
libmockito-java,
libxerces2-java
Standards-Version: 4.0.0
Vcs-Git: https://anonscm.debian.org/git/pkg-java/maven-replacer-plugin.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/maven-replacer-plugin.git
libmockito-java (>= 2.0),
libxerces2-java,
maven-debian-helper (>= 1.5)
Standards-Version: 4.4.0
Vcs-Git: https://salsa.debian.org/java-team/maven-replacer-plugin.git
Vcs-Browser: https://salsa.debian.org/java-team/maven-replacer-plugin
Homepage: http://code.google.com/p/maven-replacer-plugin
Package: libreplacer-java
......
......@@ -4,4 +4,4 @@
maven.test.skip=false
project.build.sourceEncoding=UTF-8
user.home=.
user.home=target
Description: Fixes the compatibility with the version of Mockito in Debian
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/src/test/java/com/google/code/maven_replacer_plugin/ReplacerMojoTest.java
+++ b/src/test/java/com/google/code/maven_replacer_plugin/ReplacerMojoTest.java
@@ -11,6 +11,7 @@
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.argThat;
import static org.mockito.Matchers.eq;
+import static org.mockito.Matchers.nullable;
import static org.mockito.Matchers.isA;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
@@ -428,7 +429,7 @@
@Test (expected = MojoExecutionException.class)
public void shouldRethrowIOExceptionsAsMojoExceptions() throws Exception {
- when(fileUtils.readFile(anyString(), anyString())).thenThrow(new IOException());
+ when(fileUtils.readFile(nullable(String.class), nullable(String.class))).thenThrow(new IOException());
mojo.setRegexFlags(regexFlags);
mojo.setRegex(REGEX);
@@ -442,7 +443,7 @@
@Test
public void shouldNotThrowExceptionWhenIgnoringErrors() throws Exception {
- when(fileUtils.readFile(anyString(), anyString())).thenThrow(new IOException());
+ when(fileUtils.readFile(nullable(String.class), nullable(String.class))).thenThrow(new IOException());
mojo.setIgnoreErrors(true);
mojo.setFile(FILE);
01-hamcrest-compatibility.patch
02-mockito-compatibility.patch
......@@ -2,6 +2,3 @@
%:
dh $@
get-orig-source:
uscan --download-current-version --force-download --rename