diff options
author | Julien Lepiller <julien@lepiller.eu> | 2017-10-25 23:05:10 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2017-11-02 13:07:17 +0100 |
commit | 8d6a48150aab886c24c3c05849c04d71fc2f8087 (patch) | |
tree | e4de16bf63002091b400deab8c7581a9853f040a /gnu/packages/java.scm | |
parent | 5619556b24eb4c10db467435b64c0c25fc900f0e (diff) | |
download | patches-8d6a48150aab886c24c3c05849c04d71fc2f8087.tar patches-8d6a48150aab886c24c3c05849c04d71fc2f8087.tar.gz |
gnu: Add java-powermock-reflect.
* gnu/packages/java.scm (java-powermock-reflect): New variable.
* gnu/packages/patches/java-powermock-fix-java-files.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/java.scm')
-rw-r--r-- | gnu/packages/java.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 208baf9f15..80603dc37f 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -6787,3 +6787,41 @@ programming language. The ulitimate goal of the Xerial project is to manage everything as database, including class objects, text format data, data streams, etc.") (license license:asl2.0))) + +(define-public java-powermock-reflect + (package + (name "java-powermock-reflect") + (version "1.7.3") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/powermock/powermock/" + "archive/powermock-" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0sbgi5vqq7k72wzcdjb20s370vyd4hsbnx71pzb8ishml3gy7fwy")) + (patches + (search-patches "java-powermock-fix-java-files.patch")))) + (build-system ant-build-system) + (arguments + `(#:jar-name "java-powermock-reflect.jar" + #:jdk ,icedtea-8 + #:source-dir "powermock-reflect/src/main/java" + #:test-dir "powermock-reflect/src/test")) + (inputs + `(("java-objenesis" ,java-objenesis))) + (native-inputs + `(("junit" ,java-junit) + ("cglib" ,java-cglib) + ("asm" ,java-asm) + ("hamcrest" ,java-hamcrest-core) + ("assertj" ,java-assertj))) + (home-page "https://github.com/powermock/powermock") + (synopsis "Mock library extension framework") + (description "PowerMock is a framework that extends other mock libraries +such as EasyMock with more powerful capabilities. PowerMock uses a custom +classloader and bytecode manipulation to enable mocking of static methods, +constructors, final classes and methods, private methods, removal of static +initializers and more. By using a custom classloader no changes need to be +done to the IDE or continuous integration servers which simplifies adoption.") + (license license:asl2.0))) |