debian/ 0000755 0000000 0000000 00000000000 12201344432 007161 5 ustar debian/build.xml 0000644 0000000 0000000 00000006050 12201344150 011000 0 ustar
build file for easymock
debian/libeasymock-java-doc.docs 0000644 0000000 0000000 00000000076 12201344150 014017 0 ustar Documentation.html
Documentation_fr.html
samples
easymock.css
debian/maven.publishedRules 0000644 0000000 0000000 00000001723 12201344150 013203 0 ustar # Maven published rules - additional rules to publish, to help
# the packaging work of Debian maintainers using mh_make
# Format of this file is:
# [group] [artifact] [type] [version] [classifier] [scope]
# where each element can be either
# - the exact string, for example org.apache for the group, or 3.1
# for the version. In this case, the element is simply matched
# and left as it is
# - * (the star character, alone). In this case, anything will
# match and be left as it is. For example, using * on the
# position of the artifact field will match any artifact id
# - a regular expression of the form s/match/replace/
# in this case, elements that match are transformed using
# the regex rule.
# All elements much match before a rule can be applied
# Example rule: match jar with groupid= junit, artifactid= junit
# and version starting with 3., replacing the version with 3.x
# junit junit jar s/3\\..*/3.x/
s/easymock/org.easymock/ easymock * s/.*/debian/
debian/libeasymock-java.jlibs 0000644 0000000 0000000 00000000022 12201344150 013416 0 ustar dist/easymock.jar
debian/libeasymock-java-doc.doc-base 0000644 0000000 0000000 00000001264 12201344150 014544 0 ustar Document: easymock-manual
Title: EasyMock
Author: Tammo Freese
Abstract: This document describes how to use the
Java EasyMock library when testing your Java code.
Contains API documentation and sample code.
Section: Programming/Java
Format: HTML
Index: /usr/share/doc/libeasymock-java-doc/Documentation.html
Files: /usr/share/doc/libeasymock-java-doc/*.html
/usr/share/doc/libeasymock-java-doc/api/*.html
/usr/share/doc/libeasymock-java-doc/api/org/easymock/*.html
/usr/share/doc/libeasymock-java-doc/api/org/easymock/internal/*.html
/usr/share/doc/libeasymock-java-doc/api/org/easymock/internal/matchers/*.html
/usr/share/doc/libeasymock-java-doc/samples/org/easymock/samples/*.java
debian/libeasymock-java.poms 0000644 0000000 0000000 00000000057 12201344150 013301 0 ustar debian/pom.xml --no-parent --usj-name=easymock
debian/watch 0000644 0000000 0000000 00000000204 12201344150 010203 0 ustar version=3
opts=dversionmangle=s/\+ds// \
http://sf.net/easymock/easymock-([\d\.]*)\.(?:zip|tgz|tbz2|txz|tar\.gz|tar\.bz2|tar\.xz)
debian/rules 0000755 0000000 0000000 00000003765 12201344150 010251 0 ustar #!/usr/bin/make -f
export JAVA_HOME=/usr/lib/jvm/default-java
PKD = $(abspath $(dir $(MAKEFILE_LIST)))
PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s*([\d\.]+)}')
DTYPE = +ds
%:
dh $@ --with javahelper --with jh_maven_repo_helper
override_dh_auto_build:
ant -f $(CURDIR)/debian/build.xml jar javadoc test
override_dh_auto_clean:
dh_auto_clean
ant -f $(CURDIR)/debian/build.xml clean
.PHONY: get-orig-source
## http://wiki.debian.org/onlyjob/get-orig-source
get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
@
$(PKG)-$(VER):
@echo "# Downloading..."
uscan --noconf --verbose --rename --repack --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
@echo "# Extracting..."
mkdir -p \
$(PKG)-$(VER)-PRE \
$(PKG)-$(VER)/src \
$(PKG)-$(VER)/samples \
$(PKG)-$(VER)/tests \
&& tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER)-PRE --strip-components 1 \
|| $(RM) -r $(PKG)-$(VER)-PRE
unzip $(PKG)-$(VER)-PRE/easymock-$(VER)-sources.jar -d $(PKG)-$(VER)/src
unzip $(PKG)-$(VER)-PRE/easymock-$(VER)-samples.jar -d $(PKG)-$(VER)/samples
unzip $(PKG)-$(VER)-PRE/easymock-$(VER)-tests.jar -d $(PKG)-$(VER)/tests
@echo "# Cleaning-up..."
$(RM) -r -v \
$(PKG)-$(VER)-PRE/*.jar \
$(PKG)-$(VER)-PRE/clover
cp -v $(PKG)-$(VER)-PRE/* $(PKG)-$(VER)
cd $(PKG)-$(VER) \
&& $(RM) -r -v \
samples/META-INF/ \
tests/META-INF/ \
src/META-INF/ \
&& find . -depth -type f -name "*.class" -exec $(RM) '{}' \;
$(PKG)_$(VER)$(DTYPE).orig.tar.xz: $(PKG)-$(VER)
@echo "# Packing..."
find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
| XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
&& $(RM) -r "$(PKG)-$(VER)" "$(PKG)-$(VER)-PRE"
get-orig-pom:
wget -O debian/pom.xml \
http://repo1.maven.org/maven2/org/easymock/easymock/$(VER)/easymock-$(VER).pom
debian/changelog 0000644 0000000 0000000 00000010013 12201344150 011023 0 ustar easymock (2.5.2+ds-1) unstable; urgency=low
* New upstream release. (Closes: #713751)
* Bump Standards-Version to 3.9.4, no changes.
* Bump compat level to 9 and require debhelper >= 9.
* debian/rules:
- Add a new get-orig-source and get-orig-pom target.
- Use dh sequencer instead of cdbs and simplify debian/rules.
- Build with javahelper and jh_maven_repo_helper.
* Remove the following files, no longer needed.
- get-orig-source script.
- ant.properties.
- uscan helper files.
* debian/control:
- Add myself to Uploaders.
- Remove obsolete DM-Upload-allowed flag.
- Use canonical Vcs-URI.
- Add javahelper and ant to Build-Depends, remove cdbs.
- Move junit4 and default-jdk to Build-Depends-Indep.
- libeasymock-java: Suggest junit4.
* Update debian/watch file to detect the latest upstream release.
* debian/patches:
- Refresh java7-compat.patch.
- Drop 10_create_link_to_samples_and_javadocs_in_Documentation.dpatch
because the rest of the documentation is easy to find in the same place
as Documentation.html.
* Update debian/copyright to copyright format 1.0. The new upstream license
for EasyMock is Apache-2.0.
* Update pom.xml for easymock 2.5.2.
* Update build.xml and extend classpath locations, so that compile and test
targets can be run successfully.
-- Markus Koschany Tue, 06 Aug 2013 19:33:38 +0200
easymock (2.4+ds1-7) unstable; urgency=low
* Team upload.
* Apply patch from James Page to fix FTBFS with OpenJDK-7
as default-java. (Closes: #678170, LP: #888122)
-- Niels Thykier Wed, 20 Jun 2012 00:19:13 +0200
easymock (2.4+ds1-6) unstable; urgency=low
* Team upload.
* Add a publish rule for the old groupId 'easymock'.
-- Torsten Werner Tue, 23 Aug 2011 22:29:09 +0200
easymock (2.4+ds1-5) unstable; urgency=low
* Team upload.
[ Matthias Schmitz ]
* Install the pom.xml (Closes:#593160):
- Remove unneeded d/libeasymock-java.dirs.
[ Damien Raude-Morvan ]
* Drop Depends on JRE packages since it's a library (as per Debian Java
Policy).
* Update Standards-Version: 3.9.2:
- Rename d/README.Debian-source to debian/README.source
-- Damien Raude-Morvan Mon, 25 Apr 2011 13:41:59 +0200
easymock (2.4+ds1-4) unstable; urgency=low
* Team upload.
* Switch to default-jdk and default-jre-headless. Thanks to Thierry Carrez.
* Switch to source format 3.0.
* Update Standards-Version: 3.8.4.
-- Torsten Werner Mon, 03 May 2010 20:12:00 +0200
easymock (2.4+ds1-3) unstable; urgency=low
* Updated dependency version of junit4 (Closes: #534017).
* Bump standards-version to 3.8.1 (no changes needed).
-- Jan-Pascal van Best Tue, 23 Jun 2009 12:10:43 +0200
easymock (2.4+ds1-2) unstable; urgency=low
* Updated debian/watch to work again with upstream version numbering
* Added DM-Upload-Allowed: yes to debian/control
* Moved build.xml to debian/ to silence Lintian about it
-- Jan-Pascal van Best Mon, 08 Sep 2008 16:03:48 +0200
easymock (2.4+ds1-1) unstable; urgency=low
* New upstream version
* Build with OpenJDK (gcj hangs 'sometimes' during builds)
* Reformatted debian/copyright to pacify lintian
* Update build.xml to build javadocs with source=5
* Update standards-version to 3.8.0
* Update doc-base section to Programming/Java
-- Jan-Pascal van Best Mon, 11 Aug 2008 20:21:27 +0200
easymock (2.3+ds1-2) unstable; urgency=low
* Updated Vcs-* and Homepage fields in control file
* Updated watch file to match upstream version correctly (M. Koch)
* Updated dependency to current gcj-java-compat-dev (Closes: #450422)
* Updated standards version to 3.7.3
-- Jan-Pascal van Best Fri, 11 Jan 2008 16:14:31 +0100
easymock (2.3+ds1-1) unstable; urgency=low
* Initial release. (Closes: #441839)
-- Jan-Pascal van Best Thu, 13 Sep 2007 20:21:48 +0200
debian/patches/ 0000755 0000000 0000000 00000000000 12201344365 010615 5 ustar debian/patches/java7-compat.patch 0000644 0000000 0000000 00000010564 12201344150 014125 0 ustar From: James Page
Date: Tue, 6 Aug 2013 19:50:34 +0200
Subject: java7 compat
This patch works around tighter closure handling in Java 7 and aligns to
changes in easymock 3.1 upstream. This patch should be dropped when the new
version of easymock is uploaded.
Forwarded: not-needed
---
src/org/easymock/EasyMock.java | 12 ++++++------
tests/org/easymock/tests2/CaptureTest.java | 14 +++++++-------
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/org/easymock/EasyMock.java b/src/org/easymock/EasyMock.java
index 3b3309d..9b10b69 100644
--- a/src/org/easymock/EasyMock.java
+++ b/src/org/easymock/EasyMock.java
@@ -1468,7 +1468,7 @@ public class EasyMock {
* @param captured Where the parameter is captured
* @return 0
*/
- public static int capture(Capture captured) {
+ public static int captureInt(Capture captured) {
reportMatcher(new Captures(captured));
return 0;
}
@@ -1479,7 +1479,7 @@ public class EasyMock {
* @param captured Where the parameter is captured
* @return 0
*/
- public static long capture(Capture captured) {
+ public static long captureLong(Capture captured) {
reportMatcher(new Captures(captured));
return 0;
}
@@ -1490,7 +1490,7 @@ public class EasyMock {
* @param captured Where the parameter is captured
* @return 0
*/
- public static float capture(Capture captured) {
+ public static float captureFloat(Capture captured) {
reportMatcher(new Captures(captured));
return 0;
}
@@ -1501,7 +1501,7 @@ public class EasyMock {
* @param captured Where the parameter is captured
* @return 0
*/
- public static double capture(Capture captured) {
+ public static double captureDouble(Capture captured) {
reportMatcher(new Captures(captured));
return 0;
}
@@ -1512,7 +1512,7 @@ public class EasyMock {
* @param captured Where the parameter is captured
* @return 0
*/
- public static byte capture(Capture captured) {
+ public static byte captureByte(Capture captured) {
reportMatcher(new Captures(captured));
return 0;
}
@@ -1523,7 +1523,7 @@ public class EasyMock {
* @param captured Where the parameter is captured
* @return 0
*/
- public static char capture(Capture captured) {
+ public static char captureChar(Capture captured) {
reportMatcher(new Captures(captured));
return 0;
}
diff --git a/tests/org/easymock/tests2/CaptureTest.java b/tests/org/easymock/tests2/CaptureTest.java
index d1b4b98..19b880f 100644
--- a/tests/org/easymock/tests2/CaptureTest.java
+++ b/tests/org/easymock/tests2/CaptureTest.java
@@ -119,7 +119,7 @@ public class CaptureTest {
Capture capture = new Capture();
IMethods mock = createMock(IMethods.class);
- expect(mock.oneArg(capture(capture))).andReturn("answer");
+ expect(mock.oneArg(captureInt(capture))).andReturn("answer");
expect(mock.oneArg((Integer) capture(capture))).andReturn("answer");
replay(mock);
@@ -160,12 +160,12 @@ public class CaptureTest {
IMethods mock = createMock(IMethods.class);
- expect(mock.oneArg(capture(captureI))).andReturn("answerI");
- expect(mock.oneArg(capture(captureL))).andReturn("answerL");
- expect(mock.oneArg(capture(captureF))).andReturn("answerF");
- expect(mock.oneArg(capture(captureD))).andReturn("answerD");
- expect(mock.oneArg(capture(captureB))).andReturn("answerB");
- expect(mock.oneArg(capture(captureC))).andReturn("answerC");
+ expect(mock.oneArg(captureInt(captureI))).andReturn("answerI");
+ expect(mock.oneArg(captureLong(captureL))).andReturn("answerL");
+ expect(mock.oneArg(captureFloat(captureF))).andReturn("answerF");
+ expect(mock.oneArg(captureDouble(captureD))).andReturn("answerD");
+ expect(mock.oneArg(captureByte(captureB))).andReturn("answerB");
+ expect(mock.oneArg(captureChar(captureC))).andReturn("answerC");
replay(mock);
debian/patches/series 0000644 0000000 0000000 00000000023 12201344150 012015 0 ustar java7-compat.patch
debian/libeasymock-java-doc.javadoc 0000644 0000000 0000000 00000000004 12201344150 014465 0 ustar api
debian/source/ 0000755 0000000 0000000 00000000000 12201344365 010466 5 ustar debian/source/format 0000644 0000000 0000000 00000000014 12201344150 011664 0 ustar 3.0 (quilt)
debian/README.source 0000644 0000000 0000000 00000000442 12201344150 011335 0 ustar README.Debian-source for EasyMock
=================================
Please use debian/rules get-orig-source to obtain the dfsg compatible sources for
EasyMock.
During this process the following files will be removed:
- jar files
- class files
- META-INF directories
- html documentation
debian/compat 0000644 0000000 0000000 00000000002 12201344150 010354 0 ustar 9
debian/copyright 0000644 0000000 0000000 00000001314 12201344150 011110 0 ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: EasyMock
Source: http://easymock.org/Downloads.html
Files: *
Copyright: 2001-2013, OFFIS, Tammo Freese, Henri Tremblay
License: Apache-2.0
Files: debian/*
Copyright: 2007-2009, Jan-Pascal van Best
2009, Damien Raude-Morvan
2010-2011, Torsten Werner
2012, Niels Thykier
2013, Markus Koschany
License: Apache-2.0
License: Apache-2.0
On Debian systems, the complete text of the Apache version 2.0 license
can be found in "/usr/share/common-licenses/Apache-2.0".
debian/pom.xml 0000644 0000000 0000000 00000027114 12201344150 010500 0 ustar
4.0.0
org.easymock
easymock
2.5.2
jar
EasyMock
http://www.easymock.org
EasyMock provides an easy way to create Mock Objects for interfaces by generating them on the fly using Java's proxy mechanism
2001
Apache 2
http://www.apache.org/licenses/LICENSE-2.0.txt
repo
OFFIS, Tammo Freese, Henri Tremblay
tammo
Tammo Freese
+1
henri
Henri Tremblay
http://www.ossia-conseil.com/blog/henri
Ossia Conseil
http://ossia-conseil.com
+1
SourceForge
http://sourceforge.net/tracker/?group_id=82958
User List
From Yahoo groups
easymock-unsubscribe@yahoogroups.com
easymock@yahoogroups.com
http://tech.groups.yahoo.com/group/easymock/
http://easymock.svn.sourceforge.net/viewvc/easymock/trunk/easymock/
scm:svn:https://easymock.svn.sourceforge.net/svnroot/easymock/trunk/easymock
scm:svn:http://easymock.svn.sourceforge.net/svnroot/easymock/trunk/easymock
junit
junit
4.7
test
org.apache.maven.plugins
maven-remote-resources-plugin
1.0
process
org.apache:apache-jar-resource-bundle:1.3
com.keyboardsamurais.maven
maven-timestamp-plugin
1.0
date
create
date
yyyy-MM-dd
year
create
year
yyyy
maven-antrun-plugin
generate-sources
${basedir}/src/samples/java
run
maven-compiler-plugin
1.5
1.5
maven-jar-plugin
true
true
false
true
true
maven-eclipse-plugin
2.7
org.apache.felix
maven-bundle-plugin
2.0.0
org.easymock.internal.*;poweruser=true;mandatory:=poweruser, org.easymock
bundle-manifest
prepare-package
manifest
org.apache.maven.plugins
maven-source-plugin
attach-sources
jar
org.apache.maven.plugins
maven-javadoc-plugin
attach-javadocs
jar
com.atlassian.maven.plugins
maven-clover2-plugin
2.6.0
${basedir}/clover.license
100.00%
true
false
1.5
**/org/easymock/tests/IMethods.java
**/org/easymock/tests/IVarArgs.java
**/org/easymock/tests/Util.java
**/org/easymock/samples/*.java
verify
instrument
clover
check
maven-surefire-plugin
${jdk1_5.jvm}
verify
test
maven-assembly-plugin
2.2-beta-4
${project.artifactId}-${project.version}
${basedir}/src/main/assembly/assembly-tests.xml
${basedir}/src/main/assembly/assembly-samples.xml
${basedir}/src/main/assembly/assembly.xml
org.apache.maven.wagon
wagon-ssh-external
1.0-beta-5
maven-javadoc-plugin
*.internal
Copyright © ${project.inceptionYear}-${year} OFFIS, Tammo Freese, Henri Tremblay. This documentation is provided under the terms of the Apache 2 licence.]]>
com.atlassian.maven.plugins
maven-clover2-plugin
2.6.0
${basedir}/clover.license
1.5
org.codehaus.mojo
findbugs-maven-plugin
2.1
findbugs-exclude.xml
org.apache.maven.plugins
maven-checkstyle-plugin
2.2
org.apache.maven.plugins
maven-pmd-plugin
2.4
1.5
org.codehaus.mojo
javancss-maven-plugin
2.0-beta-2
org.codehaus.mojo
jdepend-maven-plugin
2.0-beta-2
easymock-release
EasyMock Repository
scpexe://shell.sf.net/home/groups/e/ea/easymock/htdocs/maven/repository
easymock-snapshot
EasyMock Snapshot Repository
scpexe://shell.sf.net/home/groups/e/ea/easymock/htdocs/maven/repository-snapshot
debian/control 0000644 0000000 0000000 00000003145 12201344150 010564 0 ustar Source: easymock
Section: java
Priority: optional
Maintainer: Debian Java Maintainers
Uploaders:
Jan-Pascal van Best ,
Markus Koschany
Build-Depends:
ant,
ant-optional,
debhelper (>= 9),
javahelper,
maven-repo-helper
Build-Depends-Indep:
default-jdk,
junit4
Standards-Version: 3.9.4
Homepage: http://www.easymock.org
Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/easymock/
Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/easymock/
Package: libeasymock-java
Architecture: all
Depends:
${java:Depends},
${misc:Depends}
Suggests:
junit4,
libeasymock-java-doc
Description: Java library to generate Mock Objects for given interfaces
EasyMock 2 is a library that provides an easy way to use Mock Objects for
given interfaces. Mock Objects simulate parts of the behavior of domain code,
and are able to check whether they are used as defined. Domain classes can be
tested in isolation by simulating their collaborators with Mock Objects.
Package: libeasymock-java-doc
Architecture: all
Depends:
${misc:Depends}
Section: doc
Enhances:
libeasymock-java
Description: Java library to generate Mock Objects for given interfaces (documentation)
EasyMock 2 is a library that provides an easy way to use Mock Objects for
given interfaces. Mock Objects simulate parts of the behavior of domain code,
and are able to check whether they are used as defined. Domain classes can be
tested in isolation by simulating their collaborators with Mock Objects.
.
This package contains the documentation for the Mock Objects library.