debian/0000755000000000000000000000000012160133264007164 5ustar debian/rules0000755000000000000000000000347412160133163010252 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 export JAVA_HOME=/usr/lib/jvm/default-java export CLASSPATH=/usr/share/java/objenesis.jar:/usr/share/java/cglib.jar:/usr/share/java/hamcrest-core.jar:/usr/share/java/asm3.jar:/usr/share/java/junit4.jar 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_jh_build: jh_build mockito-core.jar org/ override_dh_auto_clean: dh_auto_clean rm -f $(CURDIR)/mockito-core.jar override_dh_builddeb: dh_builddeb -- -Zxz .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 $(PKG)-$(VER)-PRE \ && tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER)-PRE --strip-components 0 \ || $(RM) -r $(PKG)-$(VER)-PRE unzip $(PKG)-$(VER)-PRE/sources/mockito-core-$(VER)-sources.jar -d $(PKG)-$(VER) @echo "# Cleaning-up..." cd $(PKG)-$(VER) \ && $(RM) -r -v \ org/mockito/cglib \ org/mockito/asm \ *.txt $(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://mirrors.ibiblio.org/pub/mirrors/maven2/org/mockito/mockito-core/$(VER)/mockito-core-$(VER).pom debian/control0000644000000000000000000000227412160133163010572 0ustar Source: mockito Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Markus Koschany Build-Depends: debhelper (>= 7.0.50~), javahelper, maven-repo-helper (>= 1.7.1) Build-Depends-Indep: default-jdk, junit4, libasm3-java, libcglib-java, libhamcrest-java, libobjenesis-java Standards-Version: 3.9.4 Homepage: http://code.google.com/p/mockito/ Vcs-Git: git://anonscm.debian.org/pkg-java/mockito.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/mockito.git Package: libmockito-java Architecture: all Depends: ${java:Depends}, ${misc:Depends} Suggests: libmockito-java-doc Description: mocking framework for Java Mockito is a mocking library which lets you write tests with a clean and simple API. . It generates mocks using reflection, it records all mock invocations, including methods arguments. Package: libmockito-java-doc Architecture: all Section: doc Depends: ${misc:Depends} Description: mocking framework for Java - documentation Mockito is a mocking library which lets you write tests with a clean and simple API. . This package contains the JavaDoc documentation for Mockito. debian/README.source0000644000000000000000000000052412160133163011342 0ustar mockito for Debian ------------------ The original source has been repacked because it contained various embedded jars, and had a structure not really usable for packaging. To get the tarball used to build this Debian package, do: $ debian/rules get-orig-source -- David Paleino Mon, 15 Mar 2010 22:38:59 +0100 debian/source/0000755000000000000000000000000012160133163010462 5ustar debian/source/format0000644000000000000000000000001412160133163011670 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000777312160133163011052 0ustar mockito (1.9.5+ds-1) unstable; urgency=low * New maintainer. (Closes: #711832) * New upstream release. * debian/control: - Bump Standards-Version to 3.9.4, no changes. - Remove versioned build-dep on javahelper which is trivially satisfied now. - Use canonical Vcs-URI. - Suggest libmockito-java-doc. - Update homepage field. * debian/copyright: - Update debian/copyright. Add BSD-3-clause license. * Drop libmockito-java-doc.doc-base file. Let javahelper install it automatically. * Build the Javadoc documentation at build time and use libmockito-java-doc.javadoc to install it. Do not use pre-built html files anymore and remove the install file. * Update pom.xml for new upstream release. * Refresh all patches. * debian/rules: - Improve get-orig-source-target to produce identical tarballs. - Remove unneeded override targets. - Use xz compression. * Update debian/watch and make the extension regex more flexible. -- Markus Koschany Sat, 15 Jun 2013 21:11:04 +0200 mockito (1.9.0+ds1-2.2) unstable; urgency=low * Non-maintainer upload. * Fix "Missing jars in /usr/share/maven-repo": no-changes rebuild against fixed maven-*-helper packages. Sorry for missing this in the previous uploads, and thanks to Emmanuel Bourg for the bug report. (Closes: #711314) -- gregor herrmann Thu, 06 Jun 2013 22:10:25 +0200 mockito (1.9.0+ds1-2.1) unstable; urgency=low * Non-maintainer upload. * Fix "Drop BD on openjdk-6-jdk": apply patch from Ubuntu / James Page: Transition package to default java implementation: - d/control: Drop BD on openjdk-6-jdk. This dependency is not required as the package also BD's on default-jdk. (Closes: #684155) -- gregor herrmann Wed, 22 May 2013 18:47:10 +0200 mockito (1.9.0+ds1-2) unstable; urgency=low [ Ludovic Claude ] * d/control: update locations of Mockito in Vcs-Git and Vcs-Browser * d/control: add version contraint >= 1.7.1 to be able to use jh_maven_repo_helper plugin * d/rules: use jh_maven_repo_helper plugin and remove override_dh_auto_install section. * Update debian/pom.xml for mockito 1.9.0 [ David Paleino ] * ACKed changes by Ludovic, with small edits (Closes: #668233, #671593) -- David Paleino Sat, 05 May 2012 07:46:53 +0200 mockito (1.9.0+ds1-1) unstable; urgency=low * New upstream version * Updated debian/watch * Fix FTBFS with hamcrest new interfaces (Closes: #661877) * Updated debian/copyright * Bump Standards-Version to 3.9.3, no changes needed -- David Paleino Mon, 19 Mar 2012 23:53:45 +0100 mockito (1.8.5+ds1-3) unstable; urgency=low * Add default-jdk to Build-Depends (Closes: #630636) * Bump Standards-Version to 3.9.2, no changes needed -- David Paleino Wed, 22 Jun 2011 21:09:37 +0200 mockito (1.8.5+ds1-2) unstable; urgency=low * debian/control: - substitute libasm-java with libasm3-java (Closes: #585581) -- David Paleino Wed, 16 Jun 2010 09:27:06 +0200 mockito (1.8.5+ds1-1) unstable; urgency=low * New upstream release * debian/watch: use googlecode.debian.net redirector * debian/patches/: - 01-fix_license_headers.patch removed, fixed upstream * debian/rules: add support for Maven POM * debian/libmockito-java.poms, debian/pom.xml: add external pom-file * debian/control: - added Build-Dependency on maven-repo-helper - added Build-Dependency on openjdk-6-jdk -- David Paleino Sat, 12 Jun 2010 00:16:28 +0200 mockito (1.8.4+ds1-2) unstable; urgency=low * debian/patches/01-fix_license_headers.patch added, received clarifications from upstream * debian/copyright fixed with proper information -- David Paleino Sat, 22 May 2010 18:56:37 +0200 mockito (1.8.4+ds1-1) unstable; urgency=low * Initial release (Closes: #573586) -- David Paleino Wed, 24 Mar 2010 20:41:48 +0100 debian/libmockito-java.poms0000644000000000000000000000006312160133163013134 0ustar debian/pom.xml --no-parent --usj-name=mockito-core debian/compat0000644000000000000000000000000212160133163010360 0ustar 7 debian/pom.xml0000644000000000000000000000265312160133163010505 0ustar 4.0.0 org.mockito mockito-core 1.9.5 Mockito jar http://www.mockito.org Mock objects library for java The MIT License http://code.google.com/p/mockito/wiki/License repo http://code.google.com/p/mockito/source/browse/ szczepiq Szczepan Faber org.hamcrest hamcrest-core 1.1 org.objenesis objenesis 1.0 debian/libmockito-java.jlibs0000644000000000000000000000002112160133163013253 0ustar mockito-core.jar debian/patches/0000755000000000000000000000000012160133163010611 5ustar debian/patches/01-fix_FTBFS_with_hamcrest_interfaces.patch0000644000000000000000000000154512160133163020713 0ustar From: David Paleino Date: Sat, 15 Jun 2013 12:12:42 +0200 Subject: 01 fix_FTBFS_with_hamcrest_interfaces --- org/mockito/internal/matchers/LocalizedMatcher.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org/mockito/internal/matchers/LocalizedMatcher.java b/org/mockito/internal/matchers/LocalizedMatcher.java index 4021ce0..b0b4747 100644 --- a/org/mockito/internal/matchers/LocalizedMatcher.java +++ b/org/mockito/internal/matchers/LocalizedMatcher.java @@ -34,6 +34,10 @@ public class LocalizedMatcher implements Matcher, ContainsExtraTypeInformation, actualMatcher.describeTo(description); } + public void describeMismatch(Object item, Description description) { + actualMatcher.describeMismatch(item, description); + } + public Location getLocation() { return location; } debian/patches/series0000644000000000000000000000011212160133163012020 0ustar 00-use_system_libraries.patch 01-fix_FTBFS_with_hamcrest_interfaces.patch debian/patches/00-use_system_libraries.patch0000644000000000000000000002052212160133163016304 0ustar From: Markus Koschany Date: Sat, 15 Jun 2013 12:24:11 +0200 Subject: 00 use_system_libraries --- org/mockito/internal/creation/CglibMockMaker.java | 4 ++-- .../internal/creation/DelegatingMockitoMethodProxy.java | 4 ++-- org/mockito/internal/creation/MethodInterceptorFilter.java | 6 +++--- org/mockito/internal/creation/MockitoMethodProxy.java | 4 ++-- .../internal/creation/SerializableMockitoMethodProxy.java | 4 ++-- org/mockito/internal/creation/cglib/CGLIBHacker.java | 4 ++-- org/mockito/internal/creation/cglib/MockitoNamingPolicy.java | 4 ++-- org/mockito/internal/creation/jmock/ClassImposterizer.java | 10 +++++----- org/mockito/internal/creation/jmock/SerializableNoOp.java | 4 ++-- org/mockito/internal/util/MockUtil.java | 3 ++- 10 files changed, 24 insertions(+), 23 deletions(-) diff --git a/org/mockito/internal/creation/CglibMockMaker.java b/org/mockito/internal/creation/CglibMockMaker.java index 7692b84..7509dd5 100644 --- a/org/mockito/internal/creation/CglibMockMaker.java +++ b/org/mockito/internal/creation/CglibMockMaker.java @@ -4,8 +4,8 @@ */ package org.mockito.internal.creation; -import org.mockito.cglib.proxy.Callback; -import org.mockito.cglib.proxy.Factory; +import net.sf.cglib.proxy.Callback; +import net.sf.cglib.proxy.Factory; import org.mockito.exceptions.base.MockitoException; import org.mockito.internal.InternalMockHandler; import org.mockito.invocation.MockHandler; diff --git a/org/mockito/internal/creation/DelegatingMockitoMethodProxy.java b/org/mockito/internal/creation/DelegatingMockitoMethodProxy.java index bb2477d..9410a29 100644 --- a/org/mockito/internal/creation/DelegatingMockitoMethodProxy.java +++ b/org/mockito/internal/creation/DelegatingMockitoMethodProxy.java @@ -4,7 +4,7 @@ */ package org.mockito.internal.creation; -import org.mockito.cglib.proxy.MethodProxy; +import net.sf.cglib.proxy.MethodProxy; public class DelegatingMockitoMethodProxy extends AbstractMockitoMethodProxy { @@ -17,4 +17,4 @@ public class DelegatingMockitoMethodProxy extends AbstractMockitoMethodProxy { public MethodProxy getMethodProxy() { return methodProxy; } -} \ No newline at end of file +} diff --git a/org/mockito/internal/creation/MethodInterceptorFilter.java b/org/mockito/internal/creation/MethodInterceptorFilter.java index 00a91d8..c1f7cf4 100644 --- a/org/mockito/internal/creation/MethodInterceptorFilter.java +++ b/org/mockito/internal/creation/MethodInterceptorFilter.java @@ -8,8 +8,8 @@ package org.mockito.internal.creation; import java.io.Serializable; import java.lang.reflect.Method; -import org.mockito.cglib.proxy.MethodInterceptor; -import org.mockito.cglib.proxy.MethodProxy; +import net.sf.cglib.proxy.MethodInterceptor; +import net.sf.cglib.proxy.MethodProxy; import org.mockito.internal.InternalMockHandler; import org.mockito.invocation.Invocation; import org.mockito.invocation.MockHandler; @@ -72,4 +72,4 @@ public class MethodInterceptorFilter implements MethodInterceptor, Serializable return new DelegatingMethod(method); } } -} \ No newline at end of file +} diff --git a/org/mockito/internal/creation/MockitoMethodProxy.java b/org/mockito/internal/creation/MockitoMethodProxy.java index 384ca61..2b6c3c3 100644 --- a/org/mockito/internal/creation/MockitoMethodProxy.java +++ b/org/mockito/internal/creation/MockitoMethodProxy.java @@ -4,7 +4,7 @@ */ package org.mockito.internal.creation; -import org.mockito.cglib.proxy.MethodProxy; +import net.sf.cglib.proxy.MethodProxy; public interface MockitoMethodProxy { @@ -12,4 +12,4 @@ public interface MockitoMethodProxy { MethodProxy getMethodProxy(); -} \ No newline at end of file +} diff --git a/org/mockito/internal/creation/SerializableMockitoMethodProxy.java b/org/mockito/internal/creation/SerializableMockitoMethodProxy.java index 0646083..5803330 100644 --- a/org/mockito/internal/creation/SerializableMockitoMethodProxy.java +++ b/org/mockito/internal/creation/SerializableMockitoMethodProxy.java @@ -6,7 +6,7 @@ package org.mockito.internal.creation; import java.io.Serializable; -import org.mockito.cglib.proxy.MethodProxy; +import net.sf.cglib.proxy.MethodProxy; import org.mockito.internal.util.reflection.Whitebox; public class SerializableMockitoMethodProxy extends AbstractMockitoMethodProxy implements Serializable { @@ -34,4 +34,4 @@ public class SerializableMockitoMethodProxy extends AbstractMockitoMethodProxy i methodProxy = MethodProxy.create(c1, c2, desc, name, superName); return methodProxy; } -} \ No newline at end of file +} diff --git a/org/mockito/internal/creation/cglib/CGLIBHacker.java b/org/mockito/internal/creation/cglib/CGLIBHacker.java index e0ce914..1dcef65 100644 --- a/org/mockito/internal/creation/cglib/CGLIBHacker.java +++ b/org/mockito/internal/creation/cglib/CGLIBHacker.java @@ -8,7 +8,7 @@ import java.io.Serializable; import java.lang.reflect.Field; import org.mockito.internal.creation.MockitoMethodProxy; -import org.mockito.cglib.proxy.MethodProxy; +import net.sf.cglib.proxy.MethodProxy; public class CGLIBHacker implements Serializable { @@ -43,4 +43,4 @@ public class CGLIBHacker implements Serializable { } return cglibMethodProxyClass.getDeclaredField("createInfo"); } -} \ No newline at end of file +} diff --git a/org/mockito/internal/creation/cglib/MockitoNamingPolicy.java b/org/mockito/internal/creation/cglib/MockitoNamingPolicy.java index c646ccd..3a30620 100644 --- a/org/mockito/internal/creation/cglib/MockitoNamingPolicy.java +++ b/org/mockito/internal/creation/cglib/MockitoNamingPolicy.java @@ -4,7 +4,7 @@ */ package org.mockito.internal.creation.cglib; -import org.mockito.cglib.core.DefaultNamingPolicy; +import net.sf.cglib.core.DefaultNamingPolicy; public class MockitoNamingPolicy extends DefaultNamingPolicy { @@ -14,4 +14,4 @@ public class MockitoNamingPolicy extends DefaultNamingPolicy { protected String getTag() { return "ByMockitoWithCGLIB"; } -} \ No newline at end of file +} diff --git a/org/mockito/internal/creation/jmock/ClassImposterizer.java b/org/mockito/internal/creation/jmock/ClassImposterizer.java index ba4ddf1..bc0ed2d 100644 --- a/org/mockito/internal/creation/jmock/ClassImposterizer.java +++ b/org/mockito/internal/creation/jmock/ClassImposterizer.java @@ -4,10 +4,10 @@ */ package org.mockito.internal.creation.jmock; -import org.mockito.cglib.core.CodeGenerationException; -import org.mockito.cglib.core.NamingPolicy; -import org.mockito.cglib.core.Predicate; -import org.mockito.cglib.proxy.*; +import net.sf.cglib.core.CodeGenerationException; +import net.sf.cglib.core.NamingPolicy; +import net.sf.cglib.core.Predicate; +import net.sf.cglib.proxy.*; import org.mockito.exceptions.base.MockitoException; import org.mockito.internal.configuration.GlobalConfiguration; import org.mockito.internal.creation.cglib.MockitoNamingPolicy; @@ -139,4 +139,4 @@ public class ClassImposterizer { public static class ClassWithSuperclassToWorkAroundCglibBug {} -} \ No newline at end of file +} diff --git a/org/mockito/internal/creation/jmock/SerializableNoOp.java b/org/mockito/internal/creation/jmock/SerializableNoOp.java index 2fa878b..9789d2e 100644 --- a/org/mockito/internal/creation/jmock/SerializableNoOp.java +++ b/org/mockito/internal/creation/jmock/SerializableNoOp.java @@ -6,8 +6,8 @@ package org.mockito.internal.creation.jmock; import java.io.Serializable; -import org.mockito.cglib.proxy.Callback; -import org.mockito.cglib.proxy.NoOp; +import net.sf.cglib.proxy.Callback; +import net.sf.cglib.proxy.NoOp; public class SerializableNoOp implements NoOp, Serializable { diff --git a/org/mockito/internal/util/MockUtil.java b/org/mockito/internal/util/MockUtil.java index 07dcaed..b109f39 100644 --- a/org/mockito/internal/util/MockUtil.java +++ b/org/mockito/internal/util/MockUtil.java @@ -3,7 +3,8 @@ * This program is made available under the terms of the MIT License. */ package org.mockito.internal.util; - +import net.sf.cglib.proxy.Callback; +import net.sf.cglib.proxy.Factory; import org.mockito.exceptions.misusing.NotAMockException; import org.mockito.internal.InternalMockHandler; import org.mockito.internal.configuration.ClassPathLoader; debian/copyright0000644000000000000000000000764512160133163011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Mockito Source: http://code.google.com/p/mockito/downloads/list Files: * Copyright: 2007, Mockito contributors License: MIT Files: debian/* Copyright: 2010-2012, David Paleino 2013, gregor herrmann 2013, Markus Koschany License: MIT Files: org/mockito/internal/matchers/apachecommons/commons-lang-license.txt org/mockito/internal/matchers/apachecommons/EqualsBuilder.java Copyright: Apache Software Foundation License: Apache-2.0 Files: org/mockito/internal/creation/jmock/jmock-license.txt org/mockito/internal/creation/jmock/SearchingClassLoader.java Copyright: 2000-2007, jMock.org License: BSD-3-clause License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: Apache-2.0 Licensed 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. Comment: On Debian systems, the complete text of the Apache version 2.0 license can be found in "/usr/share/common-licenses/Apache-2.0". License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . Neither the name of jMock nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/libmockito-java-doc.javadoc0000644000000000000000000000001112160133163014321 0ustar internal debian/watch0000644000000000000000000000035112160133163010212 0ustar version=3 opts=dversionmangle=s/(\da?)[\+\.\-~](?:dfsg|debian|ds|repack|repacked)\.?\d*$/$1/,uversionmangle=s/-/~/ \ http://code.google.com/p/mockito/downloads/list \ .*/mockito-(\d+.*)\.(?:zip|tgz|tbz2|txz|tar\.gz|tar\.bz2|tar\.xz)