debian/0000755000000000000000000000000012224422607007167 5ustar debian/libjmock2-java-doc.doc-base.javadoc0000644000000000000000000000041712224422607015534 0ustar Document: libjmock2-java-doc Title: API JavaDoc for libjmock2-java-doc Author: Abstract: This the API JavaDoc for libjmock2-java-doc Section: Programming/Java Format: HTML Index: /usr/share/doc/libjmock2-java-doc/api Files: /usr/share/doc/libjmock2-java-doc/api/*.html debian/maven.rules0000644000000000000000000000044412224422607011353 0ustar s/org.jmock/jmock/ jmock* jar s/2\..*/2.x/ * * junit s/junit-dep/junit/ jar s/.*/4.x/ * * cglib s/cglib-nodep/cglib/ jar s/.*/debian/ * * org.objenesis objenesis jar s/.*/debian/ * * junit junit jar s/3\..*/3.x/ * * org.beanshell bsh jar s/.*/debian/ * * org.hamcrest * jar s/.*/debian/ * * debian/watch0000644000000000000000000000023412224422607010217 0ustar version=3 opts="uversionmangle=s/^.*-RC[0-9]/~$1/,dversionmangle=s/\+dfsg//" \ http://svn.codehaus.org/jmock/tags/ \ (\d.*)/ debian debian/orig-tar.sh debian/rules0000755000000000000000000000313312224422607010247 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/ant.mk JAVA_HOME := /usr/lib/jvm/default-java DEB_JARS := hamcrest-core hamcrest-library junit4 cglib-nodep bsh asm3 objenesis \ ant-junit DEB_ANT_BUILD_TARGET = zip.jars javadoc #UVERSION := $(shell dpkg-parsechangelog|grep ^Version:|cut -f2 -d' '|sed 's/+dfsg-[^-]*$$//') UVERSION := 2.7-SNAPSHOT ANT_ARGS := -Dversion=$(UVERSION) PKG := libjmock2-java JARSUFFIXES := legacy script junit3 junit4 MAVEN_REPO_URL := http://repo1.maven.org/maven2/ common-install-prehook-indep:: jh_installjavadoc -plibjmock2-java-doc build/jmock-$(UVERSION)/doc mh_installpom -o -v -p$(PKG) maven/jmock/pom.xml; \ mh_installjar -p$(PKG) -l -njmock2 maven/jmock/pom.xml \ build/jmock-$(UVERSION)/jmock-$(UVERSION).jar; \ for SFX in $(JARSUFFIXES); do \ mh_installpom -o -v -p$(PKG) maven/jmock-$$SFX/pom.xml; \ mh_installjar -p$(PKG) -l -njmock2-$$SFX maven/jmock-$$SFX/pom.xml \ build/jmock-$(UVERSION)/jmock-$$SFX-$(UVERSION).jar; \ done clean:: mh_clean rm -f debian/.javahelper_clean get-orig-source: uscan --force-download --verbose # this is an ugly hack, since there are not published maven artifacts for 2.7-SNAPSHOT #UVERSION := 2.6.0 get-orig-pom: test '! -d maven' && mkdir -p maven/jmock curl $(MAVEN_REPO_URL)/org/jmock/jmock/$(UVERSION)/jmock-$(UVERSION).pom --output maven/jmock/pom.xml for SFX in $(JARSUFFIXES); do \ mkdir -p maven/jmock-$$SFX; \ curl $(MAVEN_REPO_URL)/org/jmock/jmock-$$SFX/$(UVERSION)/jmock-$$SFX-$(UVERSION).pom \ --output maven/jmock-$$SFX/pom.xml; \ done debian/changelog0000644000000000000000000000323012224422607011037 0ustar jmock2 (2.7~snapshot+201309170925-gitd7fe69b5+dfsg-1) unstable; urgency=low [ Miguel Landaeta ] * Team upload. * New upstream release. * Fix wrong dependencies on junit in POM files. (Closes: #721538). Added patch (upstream is not providing POM files anymore): - 08mavenpoms * Prevent FTBFS errors by ignoring some unit tests failures. Added patches: - 06donthaltonjunitfailure - 07missinghamcrestjar [ Emmanuel Bourg ] * Use canonical URLs for the Vcs-* fields * debian/copyright: Removed the reference to /usr/share/common-licenses/BSD and quote the license text. * debian/rules: Improved the clean target [ Stephen Nelson ] * Fix a some FTBFS due to Java7 switch. (Closes: #717122, #717249). * Bump Standards-Version to 3.9.4. No changes were required. * Removed bundled jar files. * Bumped debhelper to version 9. * Patched build.xml to create java 1.6 source. * Patched source for unmappable character when using java 1.6 javadoc generation. -- Miguel Landaeta Sun, 06 Oct 2013 18:24:26 -0300 jmock2 (2.5.1+dfsg-2) unstable; urgency=low * Team upload. * Fix FTBFS with new libhamcrest-java >= 1.2 by backporting upstream changes from 2.6.x release (Closes: #662811). * d/control: Bump Standards-Version to 3.9.3: no changes needed. * d/copyright: Upgrade from DEP5 to copyright format 1.0. * d/control: Remove Depends on JRE as per Java Policy. -- Damien Raude-Morvan Wed, 18 Jul 2012 19:56:57 +0200 jmock2 (2.5.1+dfsg-1) unstable; urgency=low * Initial release. (Closes: #573803) -- Gabriele Giacone <1o5g4r8o@gmail.com> Sun, 14 Mar 2010 16:34:33 +0100 debian/patches/0000755000000000000000000000000012224422607010616 5ustar debian/patches/05hamcrest12.diff0000644000000000000000000002456712224422607013604 0ustar Description: Change API to support Hamcrest 1.2 Backport changes from upstream JMock 2.6.0 Author: Damien Raude-Morvan Last-Update: 2012-07-18 Forwarded: not-needed --- a/src/org/jmock/Expectations.java +++ b/src/org/jmock/Expectations.java @@ -184,39 +184,48 @@ } public boolean with(boolean value) { - return with(equalTo(value)); + addParameterMatcher(equal(value)); + return false; } public byte with(byte value) { - return with(equalTo(value)); + addParameterMatcher(equal(value)); + return 0; } public short with(short value) { - return with(equalTo(value)); + addParameterMatcher(equal(value)); + return 0; } public char with(char value) { - return with(equalTo(value)); + addParameterMatcher(equal(value)); + return 0; } public int with(int value) { - return with(equalTo(value)); + addParameterMatcher(equal(value)); + return 0; } public long with(long value) { - return with(equalTo(value)); + addParameterMatcher(equal(value)); + return 0; } public float with(float value) { - return with(equalTo(value)); + addParameterMatcher(equal(value)); + return 0; } public double with(double value) { - return with(equalTo(value)); + addParameterMatcher(equal(value)); + return 0; } public T with(T value) { - return with(equalTo(value)); + addParameterMatcher(equal(value)); + return value; } public void will(Action action) { --- a/src/org/jmock/internal/InvocationExpectation.java +++ b/src/org/jmock/internal/InvocationExpectation.java @@ -10,6 +10,7 @@ import org.jmock.api.Action; import org.jmock.api.Expectation; import org.jmock.api.Invocation; +import org.jmock.internal.matcher.MethodMatcher; import org.jmock.lib.action.VoidAction; /** @@ -19,10 +20,11 @@ * @author smgf */ public class InvocationExpectation implements Expectation { + private static ParametersMatcher ANY_PARAMETERS = new AnyParametersMatcher(); private Cardinality cardinality = Cardinality.ALLOWING; private Matcher objectMatcher = IsAnything.anything(); - private Matcher methodMatcher = IsAnything.anything(""); - private Matcher parametersMatcher = IsAnything.anything("()"); + private Matcher methodMatcher = IsAnything.anything(""); + private ParametersMatcher parametersMatcher = ANY_PARAMETERS; private Action action = new VoidAction(); private List orderingConstraints = new ArrayList(); private List sideEffects = new ArrayList(); @@ -36,12 +38,16 @@ public void setObjectMatcher(Matcher objectMatcher) { this.objectMatcher = objectMatcher; } + + public void setMethod(Method method) { + this.methodMatcher = new MethodMatcher(method); + } - public void setMethodMatcher(Matcher methodMatcher) { - this.methodMatcher = methodMatcher; + public void setMethodMatcher(Matcher matcher) { + this.methodMatcher = matcher; } - public void setParametersMatcher(Matcher parametersMatcher) { + public void setParametersMatcher(ParametersMatcher parametersMatcher) { this.parametersMatcher = parametersMatcher; } @@ -121,4 +127,14 @@ sideEffect.perform(); } } + + private static class AnyParametersMatcher extends IsAnything implements ParametersMatcher { + public AnyParametersMatcher() { + super("()"); + } + + public boolean isCompatibleWith(Object[] parameters) { + return true; + } + }; } --- a/src/org/jmock/internal/InvocationExpectationBuilder.java +++ b/src/org/jmock/internal/InvocationExpectationBuilder.java @@ -10,10 +10,9 @@ import org.jmock.api.Action; import org.jmock.api.Expectation; import org.jmock.api.Invocation; -import org.jmock.internal.matcher.MethodMatcher; import org.jmock.internal.matcher.MethodNameMatcher; import org.jmock.internal.matcher.MockObjectMatcher; -import org.jmock.internal.matcher.ParametersMatcher; +import org.jmock.internal.matcher.AllParametersMatcher; import org.jmock.syntax.MethodClause; import org.jmock.syntax.ParametersClause; import org.jmock.syntax.ReceiverClause; @@ -83,14 +82,14 @@ } public void createExpectationFrom(Invocation invocation) { - expectation.setMethodMatcher(new MethodMatcher(invocation.getInvokedMethod())); + expectation.setMethod(invocation.getInvokedMethod()); if (capturedParameterMatchers.isEmpty()) { - expectation.setParametersMatcher(new ParametersMatcher(invocation.getParametersAsArray())); + expectation.setParametersMatcher(new AllParametersMatcher(invocation.getParametersAsArray())); } else { checkParameterMatcherCount(invocation); - expectation.setParametersMatcher(new ParametersMatcher(capturedParameterMatchers)); + expectation.setParametersMatcher(new AllParametersMatcher(capturedParameterMatchers)); } } @@ -130,7 +129,7 @@ } public void with(Matcher... parameterMatchers) { - expectation.setParametersMatcher(new ParametersMatcher(Arrays.asList(parameterMatchers))); + expectation.setParametersMatcher(new AllParametersMatcher(Arrays.asList(parameterMatchers))); } public void withNoArguments() { --- /dev/null +++ b/src/org/jmock/internal/ParametersMatcher.java @@ -0,0 +1,12 @@ +package org.jmock.internal; + +import org.hamcrest.Matcher; + +public interface ParametersMatcher extends Matcher { + /** + * Is this matcher likely to be relevant to the given parameters? + * @param parameters The parameters to be matched + * @return true iff the parameters may be relevant. + */ + boolean isCompatibleWith(Object[] parameters); +} --- /dev/null +++ b/src/org/jmock/internal/matcher/AllParametersMatcher.java @@ -0,0 +1,80 @@ +package org.jmock.internal.matcher; + +import static java.util.Arrays.asList; + +import java.util.List; + +import org.hamcrest.Description; +import org.hamcrest.Matcher; +import org.hamcrest.TypeSafeDiagnosingMatcher; +import org.hamcrest.core.IsEqual; +import org.jmock.internal.ParametersMatcher; + +public class AllParametersMatcher extends TypeSafeDiagnosingMatcher implements ParametersMatcher { + private final Matcher[] elementMatchers; + + public AllParametersMatcher(Object[] expectedValues) { + this.elementMatchers = equalMatchersFor(expectedValues); + } + + @SuppressWarnings("unchecked") + public AllParametersMatcher(List> parameterMatchers) { + this.elementMatchers = parameterMatchers.toArray(new Matcher[0]); + } + + public boolean isCompatibleWith(Object[] parameters) { + return elementMatchers.length == parameters.length; + } + + @Override + public boolean matchesSafely(Object[] parameters, Description mismatch) { + return matchesNumberOfParameters(parameters, mismatch) + && matchesParameters(parameters, mismatch); + } + + private boolean matchesNumberOfParameters(Object[] parameters, Description mismatch) { + if (elementMatchers.length != parameters.length) { + mismatch.appendText("wrong number of parameters: ") + .appendValue(parameters); + return false; + } + return true; + } + + private boolean matchesParameters(Object[] parameters, Description mismatch) { + boolean result = true; + for (int i = 0; i < parameters.length; i++) { + result &= matchesParameter(parameters[i], elementMatchers[i], mismatch, i); + } + return result; + } + + private boolean matchesParameter(final Object value, final Matcher matcher, Description mismatch, int index) { + mismatch.appendText("\n parameter " + index + " "); + final boolean parameterMatches = matcher.matches(value); + if (parameterMatches) { + mismatch.appendText("matched: ").appendDescriptionOf(matcher); + } else { + mismatch.appendText("did not match: ") + .appendDescriptionOf(matcher) + .appendText(", because "); + matcher.describeMismatch(value, mismatch); + } + return parameterMatches; + } + + public void describeTo(Description description) { + description.appendList("(", ", ",")", asList(elementMatchers)); + } + + @SuppressWarnings("unchecked") + private static Matcher[] equalMatchersFor(Object[] expectedValues) { + Matcher[] matchers = new Matcher[expectedValues.length]; + for (int i = 0; i < expectedValues.length; i++) { + matchers[i] = new IsEqual(expectedValues[i]); + } + return matchers; + } + +} + --- a/test/org/jmock/test/acceptance/HamcrestTypeSafetyAcceptanceTests.java +++ b/test/org/jmock/test/acceptance/HamcrestTypeSafetyAcceptanceTests.java @@ -1,7 +1,7 @@ package org.jmock.test.acceptance; -import static org.hamcrest.number.OrderingComparisons.greaterThan; -import static org.hamcrest.text.StringStartsWith.startsWith; +import static org.hamcrest.CoreMatchers.startsWith; +import static org.hamcrest.number.OrderingComparison.greaterThan; import java.lang.reflect.Method; --- a/test/org/jmock/test/unit/internal/InvocationExpectationTests.java +++ b/test/org/jmock/test/unit/internal/InvocationExpectationTests.java @@ -16,6 +16,7 @@ import org.jmock.internal.InvocationExpectation; import org.jmock.internal.OrderingConstraint; import org.jmock.internal.SideEffect; +import org.jmock.internal.matcher.AllParametersMatcher; import org.jmock.lib.action.ReturnValueAction; import org.jmock.test.unit.support.AssertThat; import org.jmock.test.unit.support.MethodFactory; @@ -72,7 +73,7 @@ Object[] differentArgCount = {1,2,3}; Object[] noArgs = null; - expectation.setParametersMatcher(equalTo(args)); + expectation.setParametersMatcher(new AllParametersMatcher(args)); assertTrue("should match", expectation.matches(new Invocation(targetObject, method, args))); assertTrue("should not match", !expectation.matches(new Invocation(targetObject, method, differentArgs))); debian/patches/00ignore.pc0000644000000000000000000000056612224422607012574 0ustar Description: Ignores .pc directory Author: Gabriele Giacone <1o5g4r8o@gmail.com> --- a/build.xml +++ b/build.xml @@ -1,4 +1,5 @@ + debian/patches/07missinghamcrestjar0000644000000000000000000000266512224422607014616 0ustar Description: Disable code not included in Debian hamcrest package libhamcrest-java package is not including hamcrest-unit-test.jar For this reason, I had to disable some tests including features provided by that .jar. Author: Miguel Landaeta Forwarded: no Last-Update: 2013-09-29 --- jmock2-2.7~snapshot201309170925+dfsg.orig/test/org/jmock/test/unit/lib/CurrentStateMatcherTests.java +++ jmock2-2.7~snapshot201309170925+dfsg/test/org/jmock/test/unit/lib/CurrentStateMatcherTests.java @@ -4,13 +4,16 @@ import static org.hamcrest.StringDescrip import static org.jmock.lib.CurrentStateMatcher.isCurrently; import static org.jmock.lib.CurrentStateMatcher.isNotCurrently; -import org.hamcrest.AbstractMatcherTest; +// hamcrest-unit-test.jar is not available yet on Debian, see #724950 +//import org.hamcrest.AbstractMatcherTest; import org.hamcrest.Matcher; import org.jmock.States; import org.jmock.internal.StateMachine; -public class CurrentStateMatcherTests extends AbstractMatcherTest { +//public class CurrentStateMatcherTests extends AbstractMatcherTest { +public class CurrentStateMatcherTests { +/* States stateMachine = new StateMachine("stateMachine"); Matcher isCurrentlyS = isCurrently("S"); Matcher isNotCurrentlyS = isNotCurrently("S"); @@ -57,4 +60,5 @@ public class CurrentStateMatcherTests ex protected Matcher createMatcher() { return isCurrentlyS; } +*/ } debian/patches/02buildwithcglib2.20000644000000000000000000000706312224422607014127 0ustar Description: To build with cglib2.2 Origin: upstream, http://svn.jmock.codehaus.org/changelog/jmock/?cs=1317 --- jmock2-2.5.1+dfsg.orig/test/org/jmock/test/unit/support/SyntheticEmptyInterfaceClassLoader.java +++ jmock2-2.5.1+dfsg/test/org/jmock/test/unit/support/SyntheticEmptyInterfaceClassLoader.java @@ -3,9 +3,11 @@ */ package org.jmock.test.unit.support; +import static org.jmock.test.unit.support.MethodFactory.CLASS_FORMAT_VERSION; + import java.util.regex.Pattern; -import net.sf.cglib.asm.ClassWriter; +import org.objectweb.asm.ClassWriter; import net.sf.cglib.core.Constants; public class SyntheticEmptyInterfaceClassLoader extends ClassLoader { @@ -30,13 +32,15 @@ public class SyntheticEmptyInterfaceClas } private Class synthesiseInterface(String name) throws ClassFormatError { - ClassWriter writer = new ClassWriter(true); - writer.visit(MethodFactory.CLASS_FORMAT_VERSION, - Constants.ACC_PUBLIC | Constants.ACC_INTERFACE, - name.replace('.', '/'), - "java/lang/Object", - null, /* interfaces */ - null /* source file */); + ClassWriter writer = new ClassWriter(ClassWriter.COMPUTE_MAXS); + writer.visit(CLASS_FORMAT_VERSION, + Constants.ACC_PUBLIC|Constants.ACC_INTERFACE, + MethodFactory.nameToClassFormat(name), + null, + "java/lang/Object", + null /* interfaces */); + + byte[] b = writer.toByteArray(); --- jmock2-2.5.1+dfsg.orig/test/org/jmock/test/unit/support/MethodFactory.java +++ jmock2-2.5.1+dfsg/test/org/jmock/test/unit/support/MethodFactory.java @@ -4,13 +4,13 @@ package org.jmock.test.unit.support; import java.lang.reflect.Method; -import net.sf.cglib.asm.ClassWriter; -import net.sf.cglib.asm.Type; +import org.objectweb.asm.ClassWriter; +import org.objectweb.asm.Type; import net.sf.cglib.core.Constants; public class MethodFactory extends ClassLoader { - public static final int CLASS_FORMAT_VERSION = 45; + public static final int CLASS_FORMAT_VERSION = 49; public static Class[] NO_ARGUMENTS = {}; public static Class[] NO_EXCEPTIONS = {}; @@ -33,20 +33,20 @@ public class MethodFactory extends Class { @Override protected Class findClass( String interfaceName ) { - ClassWriter writer = new ClassWriter(true); + ClassWriter writer = new ClassWriter(ClassWriter.COMPUTE_MAXS); writer.visit(CLASS_FORMAT_VERSION, Constants.ACC_PUBLIC|Constants.ACC_INTERFACE, nameToClassFormat(interfaceName), + null, "java/lang/Object", - null, /* interfaces */ - null /* source file */); + null /* interfaces */); writer.visitMethod(Constants.ACC_PUBLIC | Constants.ACC_ABSTRACT, methodName, methodDescriptor(returnType, argTypes), - classNamesInClassFormat(exceptionTypes), - null /* no attributes */); + null, + classNamesInClassFormat(exceptionTypes)); byte[] classAsBytes = writer.toByteArray(); debian/patches/01buildwithjdk1.6only0000644000000000000000000000273512224422607014524 0ustar Description: To build with JDK 1.6 only Origin: upstream, http://svn.jmock.codehaus.org/changelog/jmock/?cs=1370 --- a/src/org/jmock/lib/concurrent/DeterministicScheduler.java +++ b/src/org/jmock/lib/concurrent/DeterministicScheduler.java @@ -110,21 +110,21 @@ throw blockingOperationsNotSupported(); } - public List> invokeAll(Collection> tasks) throws InterruptedException { + public List> invokeAll(Collection> tasks) throws InterruptedException { throw blockingOperationsNotSupported(); } - public List> invokeAll(Collection> tasks, long timeout, TimeUnit unit) throws InterruptedException { + public List> invokeAll(Collection> tasks, long timeout, TimeUnit unit) throws InterruptedException { throw blockingOperationsNotSupported(); } - public T invokeAny(Collection> tasks) + public T invokeAny(Collection> tasks) throws InterruptedException, ExecutionException { throw blockingOperationsNotSupported(); } - public T invokeAny(Collection> tasks, long timeout, TimeUnit unit) + public T invokeAny(Collection> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { throw blockingOperationsNotSupported(); debian/patches/series0000644000000000000000000000020012224422607012023 0ustar 00ignore.pc 03runtestsagainstsyslibs 04javadoc 06donthaltonjunitfailure 07missinghamcrestjar 08mavenpoms 09unmappablecharacters debian/patches/09unmappablecharacters0000644000000000000000000000072512224422607015102 0ustar Description: Fix unmappable character The pound symbol was not valid ascii so it was replaced by the unicode character. Author: Stephen Nelson Forwarded: no Last-Update: 2013-10-03 --- a/example/org/jmock/example/sniper/Money.java +++ b/example/org/jmock/example/sniper/Money.java @@ -27,7 +27,7 @@ @Override public String toString() { - return "£" + amount; + return "\u00a3" + amount; } @Override debian/patches/06donthaltonjunitfailure0000644000000000000000000000130012224422607015475 0ustar Description: Don't halt build process if/when junit fails Some tests were failing with warnings like these: "the Mockery is not thread-safe". The issue seems to be already reported on upstream bugtracker: https://github.com/jmock-developers/jmock-library/issues/39 Author: Miguel Landaeta Forwarded: no Last-Update: 2013-09-29 --- jmock2-2.7~snapshot201309170925+dfsg.orig/build.xml +++ jmock2-2.7~snapshot201309170925+dfsg/build.xml @@ -238,7 +238,7 @@ - + debian/patches/08mavenpoms0000644000000000000000000001362612224422607012726 0ustar Description: Include Maven POM files Upstream is not including POM files in the source code. I implemented a get-orig-pom to fetch those files from the Maven central repo. Those downloaded files are included in this patch. Since 2.7-SNAPSHOT doesn't have published Maven artifacts, I had to work with 2.6.0 files. Author: Miguel Landaeta Forwarded: no Last-Update: 2013-09-29 --- /dev/null +++ jmock2-2.7~snapshot+201309170925-gitd7fe69b5+dfsg/maven/jmock-junit3/pom.xml @@ -0,0 +1,25 @@ + + 4.0.0 + + org.jmock + jmock-parent + 2.7-SNAPSHOT + + jmock-junit3 + jar + jMock JUnit 3 Extension + + + + ${pom.groupId} + jmock + ${pom.version} + + + junit + junit + 3.8.2 + + + + --- /dev/null +++ jmock2-2.7~snapshot+201309170925-gitd7fe69b5+dfsg/maven/jmock-junit4/pom.xml @@ -0,0 +1,31 @@ + + 4.0.0 + + org.jmock + jmock-parent + 2.7-SNAPSHOT + + jmock-junit4 + jar + jMock JUnit 4 Extension + + + + ${pom.groupId} + jmock + ${pom.version} + + + junit + junit-dep + 4.4 + + + org.hamcrest + hamcrest-core + + + + + + --- /dev/null +++ jmock2-2.7~snapshot+201309170925-gitd7fe69b5+dfsg/maven/jmock-legacy/pom.xml @@ -0,0 +1,30 @@ + + 4.0.0 + + org.jmock + jmock-parent + 2.7-SNAPSHOT + + jmock-legacy + jar + jMock Legacy Extension + + + + ${pom.groupId} + jmock + ${pom.version} + + + org.objenesis + objenesis + 1.0 + + + cglib + cglib-nodep + 2.1_3 + + + + --- /dev/null +++ jmock2-2.7~snapshot+201309170925-gitd7fe69b5+dfsg/maven/jmock-script/pom.xml @@ -0,0 +1,23 @@ + + 4.0.0 + + org.jmock + jmock-parent + 2.7-SNAPSHOT + + jmock-script + jar + jMock Script Extension + + + ${pom.groupId} + jmock + ${pom.version} + + + org.beanshell + bsh + 2.0b4 + + + \ No newline at end of file --- /dev/null +++ jmock2-2.7~snapshot+201309170925-gitd7fe69b5+dfsg/maven/jmock/pom.xml @@ -0,0 +1,25 @@ + + 4.0.0 + + org.jmock + jmock-parent + 2.7-SNAPSHOT + + jmock + jar + jMock 2 Core + + + + org.hamcrest + hamcrest-core + 1.1 + + + org.hamcrest + hamcrest-library + 1.1 + + + + debian/patches/04javadoc0000644000000000000000000000203112224422607012310 0ustar Description: To use Javadoc from upstream Author: Gabriele Giacone <1o5g4r8o@gmail.com> --- a/build.xml +++ b/build.xml @@ -201,11 +201,9 @@ - - - @@ -217,8 +215,6 @@ - - debian/patches/03runtestsagainstsyslibs0000644000000000000000000000232212224422607015552 0ustar Description: Runs tests against system libraries Author: Gabriele Giacone <1o5g4r8o@gmail.com> --- a/build.xml +++ b/build.xml @@ -6,6 +6,12 @@ + + + + + + @@ -172,8 +178,8 @@ srcdir="testdata" debug="yes" failonerror="yes" - source="1.5" - target="1.5"/> + source="1.6" + target="1.6"/> debian/orig-tar.sh0000755000000000000000000000116712224422607011257 0ustar #!/bin/sh -e VERSION=$2 PACKAGE=$(dpkg-parsechangelog | sed -n 's/^Source: //p') TAR=../${PACKAGE}_${VERSION}+dfsg.orig.tar.gz TARPOMS=../${PACKAGE}_${VERSION}+dfsg.orig-maven.tar.gz DIR=${PACKAGE}-${VERSION} # svn checkout sources svn export http://svn.codehaus.org/jmock/tags/${VERSION} $DIR # svn checkout maven poms svn export http://svn.codehaus.org/jmock/tags/packaging-maven-${VERSION} $DIR/maven GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' $DIR rm -rf $DIR # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir && echo "moved $TAR to $origDir" fi debian/source/0000755000000000000000000000000012224422607010467 5ustar debian/source/format0000644000000000000000000000001412224422607011675 0ustar 3.0 (quilt) debian/README.source0000644000000000000000000000127112224422607011347 0ustar Information about jmock2 ------------------------ REPACKAGING To comply with DFSG, the following binary files have been removed from upstream tarball: lib/bsh-core-*.jar lib/cglib-*-src.jar lib/cglib-nodep-*.jar lib/hamcrest-core-*.jar lib/hamcrest-library-*.jar lib/junit-3.*.jar lib/junit-4.*.jar lib/junit-4.*-src.jar lib/objenesis-*.jar lib/objenesis-*-sources.jar Upstream also provides maven pom files that we include in Debian tarball. Please use the get-orig-source target from debian/rules to create the orig.tar.gz used for Debian packaging. For more details on repackaging of upstream sources please see the debian/orig-tar.sh file. debian/compat0000644000000000000000000000000212224422607010365 0ustar 9 debian/copyright0000644000000000000000000000350012224422607011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: jMock2 Upstream-Contact: Steve Freeman, Tim Mackinnon, Nat Pryce, Mauro Talevi, Joe Walnes Source: http://svn.codehaus.org/jmock/ Files: * Copyright: 2000-2007, jMock.org License: BSD Files: debian/* Copyright: 2010, Gabriele Giacone <1o5g4r8o@gmail.com> License: BSD License: BSD 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/control0000644000000000000000000000363112224422607010575 0ustar Source: jmock2 Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Gabriele Giacone <1o5g4r8o@gmail.com>, Stephen Nelson Build-Depends: debhelper (>= 9), javahelper (>= 0.29), ant, cdbs, ant-optional, maven-repo-helper Build-Depends-Indep: default-jdk, libhamcrest-java (>= 1.3), libcglib-java, libasm3-java, junit4, bsh, libobjenesis-java Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-java/jmock2.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/jmock2.git Homepage: http://www.jmock.org/ Package: libjmock2-java Architecture: all Depends: ${java:Depends}, ${misc:Depends}, libcglib-java, libobjenesis-java Description: Java library for testing code with mock objects Mock objects help you design and test the interactions between the objects in your programs. The jMock library: * makes it quick and easy to define mock objects, so you don't break the rhythm of programming. * lets you precisely specify the interactions between your objects, reducing the brittleness of your tests. * works well with the autocompletion and refactoring features of your IDE * plugs into your favourite test framework * is easy to extend. Package: libjmock2-java-doc Architecture: all Section: doc Depends: ${misc:Depends} Suggests: libjmock2-java Description: Documentation for jmock2 Mock objects help you design and test the interactions between the objects in your programs. The jMock library: * makes it quick and easy to define mock objects, so you don't break the rhythm of programming. * lets you precisely specify the interactions between your objects, reducing the brittleness of your tests. * works well with the autocompletion and refactoring features of your IDE * plugs into your favourite test framework * is easy to extend. . This is the API documentation for jmock2