From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8Of7-0002e6-R3 for guix-patches@gnu.org; Wed, 10 May 2017 06:16:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8Of4-0000qK-Hb for guix-patches@gnu.org; Wed, 10 May 2017 06:16:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60670) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d8Of4-0000qC-9U for guix-patches@gnu.org; Wed, 10 May 2017 06:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d8Of4-0001hN-4K for guix-patches@gnu.org; Wed, 10 May 2017 06:16:02 -0400 Subject: bug#26803: [PATCH 21/36] gnu: Add java-jmock-1. Resent-Message-ID: References: <20170506153617.3074-1-rekado@elephly.net> <20170506153617.3074-21-rekado@elephly.net> From: Roel Janssen In-reply-to: <20170506153617.3074-21-rekado@elephly.net> Date: Wed, 10 May 2017 12:15:12 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ricardo Wurmus Cc: 26803@debbugs.gnu.org Ricardo Wurmus writes: > * gnu/packages/java.scm (java-jmock-1): New variable. > --- > gnu/packages/java.scm | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm > index af6b0761f..3271dd55c 100644 > --- a/gnu/packages/java.scm > +++ b/gnu/packages/java.scm > @@ -1448,6 +1448,42 @@ constructor on object instantiation.") > mock objects in unit testing.") > (license license:asl2.0))) > > +(define-public java-jmock-1 > + (package > + (name "java-jmock") > + (version "1.2.0") > + (source (origin > + (method url-fetch) > + (uri (string-append "https://github.com/jmock-developers/" > + "jmock-library/archive/" version ".tar.gz")) > + (file-name (string-append "jmock-" version ".tar.gz")) > + (sha256 > + (base32 > + "0xmrlhq0fszldkbv281k9463mv496143vvmqwpxp62yzjvdkx9w0")))) > + (build-system ant-build-system) > + (arguments > + `(#:build-target "jars" > + #:test-target "run.tests" > + #:phases > + (modify-phases %standard-phases > + (replace 'install (install-jars "build"))))) > + (home-page "http://www.jmock.org") > + (synopsis "Mock object library for Test Driven Development") I think it should be "test-driven development" (lowercase and a -). > + (description "JMock is a library that supports test-driven development of Like on this line. > +Java code with mock objects. Mock objects help you design and test the > +interactions between the objects in your programs. > + > +The jMock library > + > +@itemize > +@item makes it quick and easy to define mock objects > +@item lets you precisely specify the interactions between > + your objects, reducing the brittleness of your tests > +@item plugs into your favourite test framework > +@item is easy to extend. > +@end itemize\n") > + (license license:bsd-3))) > + > (define-public java-jopt-simple > (package > (name "java-jopt-simple") Otherwise LGTM! Kind regards, Roel Janssen