Compare commits
91 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c5f6af251 | ||
|
|
5c0e88128e | ||
|
|
1bb4010908 | ||
|
|
7c6ae6b01c | ||
|
|
8cd7b14acc | ||
|
|
91a5d621bc | ||
|
|
efb094ed03 | ||
|
|
067be367fd | ||
|
|
8ad792545c | ||
|
|
6aea715365 | ||
|
|
9a2b655987 | ||
|
|
47306d3af0 | ||
|
|
3e01842ad5 | ||
|
|
8d738b40ef | ||
|
|
df6887b9fd | ||
|
|
33624bf944 | ||
|
|
acac41cab8 | ||
|
|
5ccafad362 | ||
|
|
6faef04946 | ||
|
|
fc655b8e60 | ||
|
|
95a27ae49b | ||
|
|
9b76606b53 | ||
|
|
1f16fc3089 | ||
|
|
740fc2fde4 | ||
|
|
eda8ca3530 | ||
|
|
28979d8342 | ||
|
|
466aaa2b6a | ||
|
|
2533e53d87 | ||
|
|
99e6b46217 | ||
|
|
eb27e1b653 | ||
|
|
3d9cb5386f | ||
|
|
7e1e1ae60e | ||
|
|
362dce6e8c | ||
|
|
b3a94f1c8b | ||
|
|
ee12e26221 | ||
|
|
004253d47d | ||
|
|
2a8999f790 | ||
|
|
d7fe8e444a | ||
|
|
417141168e | ||
|
|
2750dc3c59 | ||
|
|
acc6bab7e8 | ||
|
|
8befe76d67 | ||
|
|
06e3343468 | ||
|
|
4824a755bd | ||
|
|
cf96f1d814 | ||
|
|
92069c92d5 | ||
|
|
a92c6e9387 | ||
|
|
1171bf4b16 | ||
|
|
e487cf85e1 | ||
|
|
5858988693 | ||
|
|
225823b156 | ||
|
|
787c734be9 | ||
|
|
5ff26dd84b | ||
|
|
83a7ac830e | ||
|
|
3ae05b70a2 | ||
|
|
66842247ea | ||
|
|
e400377077 | ||
|
|
a47621e2b1 | ||
|
|
c767ee45c6 | ||
|
|
fe6ad51571 | ||
|
|
5d34ecba08 | ||
|
|
26becd60e4 | ||
|
|
f6304253f6 | ||
|
|
0f23c18c26 | ||
|
|
0b8256f520 | ||
|
|
9ee22cdca2 | ||
|
|
b20a5e2884 | ||
|
|
4b7610cca1 | ||
|
|
985bbbcf05 | ||
|
|
84759c8aa9 | ||
|
|
450cd234fb | ||
|
|
90b2c14472 | ||
|
|
87e822ed76 | ||
|
|
f684aebde7 | ||
|
|
ee68f538f5 | ||
|
|
518e63d4be | ||
|
|
a0a7f12b1a |
||
|
|
bc8f5fb3ad | ||
|
|
e09bd9cf61 | ||
|
|
3b209de564 | ||
|
|
b4e5538101 | ||
|
|
e15b1b8c60 | ||
|
|
0cd63e165d | ||
|
|
6916e3be89 | ||
|
|
c2d3b431ce | ||
|
|
536345d382 | ||
|
|
e9fd322613 | ||
|
|
8ccf819d3c | ||
|
|
427ef030ab | ||
|
|
4356aaf89e | ||
|
|
073f8a94a0 |
19 changed files with 501 additions and 452 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
14
.gitignore
vendored
14
.gitignore
vendored
|
|
@ -1 +1,13 @@
|
|||
/mockito-1.9.0.tar.xz
|
||||
/mockito-*.tar.xz
|
||||
/.build-*.log
|
||||
/noarch/
|
||||
/*.src.rpm
|
||||
/mockito-3.5.13.tar.gz
|
||||
/mockito-3.7.13.tar.gz
|
||||
/mockito-3.12.4.tar.gz
|
||||
/mockito-5.5.0.tar.gz
|
||||
/mockito-core-5.5.0.pom
|
||||
/mockito-junit-jupiter-5.5.0.pom
|
||||
/mockito-5.8.0.tar.gz
|
||||
/mockito-core-5.8.0.pom
|
||||
/mockito-junit-jupiter-5.8.0.pom
|
||||
|
|
|
|||
16
aggregator.pom
Normal file
16
aggregator.pom
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
|
||||
xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd'>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.fedoraproject.xmvn.mockito</groupId>
|
||||
<artifactId>aggregator</artifactId>
|
||||
<version>any</version>
|
||||
<packaging>pom</packaging>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<modules>
|
||||
<module>.</module>
|
||||
<module>subprojects/junit-jupiter</module>
|
||||
</modules>
|
||||
</project>
|
||||
233
changelog
Normal file
233
changelog
Normal file
|
|
@ -0,0 +1,233 @@
|
|||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.8.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Tue Feb 27 2024 Jiri Vanek <jvanek@redhat.com> - 5.8.0-5
|
||||
- Rebuilt for java-21-openjdk as system jdk
|
||||
|
||||
* Fri Feb 23 2024 Jiri Vanek <jvanek@redhat.com> - 5.8.0-4
|
||||
- bump of release for for java-21-openjdk as system jdk
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.8.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.8.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Wed Dec 13 2023 Marian Koncek <mkoncek@redhat.com> - 5.8.0-1
|
||||
- Update to upstream version 5.8.0
|
||||
|
||||
* Fri Sep 01 2023 Marian Koncek <mkoncek@redhat.com> - 5.5.0-1
|
||||
- Update to upstream version 5.5.0
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.4-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.4-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Sat Apr 09 2022 Didik Supriadi <didiksupriadi41@fedoraproject.org> - 3.12.4-4
|
||||
- Set javac compiler release to Java 8
|
||||
|
||||
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 3.12.4-3
|
||||
- Rebuilt for java-17-openjdk as system jdk
|
||||
|
||||
* Thu Jan 27 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12.4-2
|
||||
- Don't build mockito-junit-jupiter in bootstrap mode
|
||||
|
||||
* Sat Jan 22 2022 Jerry James <loganjerry@gmail.com> - 3.12.4-1
|
||||
- Version 3.12.4
|
||||
- Add inline and junit-jupiter subpackages
|
||||
- Drop OpenJDK 17 workarounds
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.13-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Wed Nov 03 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.7.13-4
|
||||
- Workaround build issue with OpenJDK 17
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.13-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.7.13-2
|
||||
- Bootstrap build
|
||||
- Non-bootstrap build
|
||||
|
||||
* Thu Feb 04 2021 Marian Koncek <mkoncek@redhat.com> - 3.7.13-1
|
||||
- Update to upstream version 3.7.13
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.13-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Fri Oct 9 2020 Stuart Gathman <stuart@gathman.org> - 3.5.13-1
|
||||
- Update to version 3.5.13
|
||||
|
||||
* Wed Sep 30 2020 Marian Koncek <mkoncek@redhat.com> - 3.5.13-1
|
||||
- Update to ustream version 3.5.13
|
||||
|
||||
* Sun Aug 23 2020 Jerry James <loganjerry@gmail.com> - 3.5.5-1
|
||||
- Update to version 3.5.5
|
||||
|
||||
* Fri Aug 14 2020 Jerry James <loganjerry@gmail.com> - 2.28.2-1
|
||||
- Update to version 2.28.2
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.23.9-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jul 22 2020 Marian Koncek <mkoncek@redhat.com> - 3.4.5-1
|
||||
- Update to upstream version 3.4.5
|
||||
|
||||
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 2.23.9-7
|
||||
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.23.9-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.2-2
|
||||
- Mass rebuild for javapackages-tools 201902
|
||||
|
||||
* Wed Oct 16 2019 Marian Koncek <mkoncek@redhat.com> - 3.1.2-1
|
||||
- Update to upstream version 3.1.2
|
||||
|
||||
* Thu Sep 19 2019 Marian Koncek <mkoncek@redhat.com> - 3.0.8-1
|
||||
- Update to upstream version 3.0.8
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.23.9-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.23.9-4
|
||||
- Mass rebuild for javapackages-tools 201901
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.23.9-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Wed Dec 12 2018 Mat Booth <mat.booth@redhat.com> - 2.23.9-3
|
||||
- Set the source encoding for the build
|
||||
|
||||
* Wed Dec 05 2018 Mat Booth <mat.booth@redhat.com> - 2.23.9-2
|
||||
- Re-add compatibility alias for 'mockito-all'
|
||||
|
||||
* Tue Dec 04 2018 Mat Booth <mat.booth@redhat.com> - 2.23.9-1
|
||||
- Update to latest upstream version
|
||||
- Switch to maven build system using a custom pom to avoid a dep on gradle
|
||||
|
||||
* Fri Aug 03 2018 Michael Simacek <msimacek@redhat.com> - 1.10.19-17
|
||||
- Remove bundled minified js from javadoc
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.19-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.10.19-15
|
||||
- Escape macros in %%changelog
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.19-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.19-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Thu Feb 16 2017 Michael Simacek <msimacek@redhat.com> - 1.10.19-12
|
||||
- Remove conditional for EOL Fedora
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.19-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Mon Feb 22 2016 Mat Booth <mat.booth@redhat.com> - 1.10.19-10
|
||||
- Explicitly import more cglib packages in OSGi metadata to prevent mockito
|
||||
failing under certain circumstances during Eclipse test suites
|
||||
|
||||
* Fri Feb 12 2016 Mat Booth <mat.booth@redhat.com> - 1.10.19-9
|
||||
- Require hamcrest explicitly in OSGi metadata
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.19-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Fri Dec 25 2015 Raphael Groner <projects.rg@smart.ms> - 1.10.19-7
|
||||
- introduce License tag
|
||||
|
||||
* Fri Dec 25 2015 Raphael Groner <projects.rg@smart.ms> - 1.10.19-6
|
||||
- reenable osgi
|
||||
|
||||
* Fri Dec 18 2015 Raphael Groner <projects.rg@smart.ms> - 1.10.19-5
|
||||
- workaround rhbz#1292777 stylesheet.css not found
|
||||
|
||||
* Thu Jul 16 2015 Michael Simacek <msimacek@redhat.com> - 1.10.19-4
|
||||
- Use aqute-bnd-2.4.1
|
||||
|
||||
* Mon Jun 22 2015 Mat Booth <mat.booth@redhat.com> - 1.10.19-3
|
||||
- Switch to mvn_install
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.19-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Wed Apr 29 2015 Michal Srb <msrb@redhat.com> - 1.10.19-1
|
||||
- Update to 1.10.19
|
||||
|
||||
* Mon Aug 25 2014 Darryl L. Pierce <dpierce@redhat.com> - 1.9.0-18
|
||||
- First build for EPEL7
|
||||
- Resolves: BZ#1110030
|
||||
|
||||
* Mon Jun 09 2014 Omair Majid <omajid@redhat.com> - 1.9.0-17
|
||||
- Use .mfiles to pick up xmvn metadata
|
||||
- Don't use obsolete _mavenpomdir and _mavendepmapfragdir macros
|
||||
- Fix FTBFS
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Thu May 22 2014 Severin Gehwolf <sgehwolf@redhat.com> - 1.9.0-16
|
||||
- Use junit R/BR over junit4.
|
||||
|
||||
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.9.0-15
|
||||
- Use Requires: java-headless rebuild (#1067528)
|
||||
|
||||
* Wed Dec 11 2013 Michael Simacek <msimacek@redhat.com> - 1.9.0-14
|
||||
- Workaround for NPE in setting NamingPolicy
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Mon Mar 25 2013 Tomas Radej <tradej@redhat.com> - 1.9.0-12
|
||||
- Patched LocalizedMatcher due to hamcrest update, (bug upstream)
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Thu Sep 6 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-10
|
||||
- More Import-Package fixes. Note that fix-cglib-refs.patch is
|
||||
not suitable for upstream: issue id=373
|
||||
|
||||
* Tue Sep 4 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-9
|
||||
- Fix missing Import-Package in manifest.
|
||||
|
||||
* Mon Aug 27 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-8
|
||||
- Add aqute bnd instructions for OSGi metadata
|
||||
|
||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Mon Apr 30 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-6
|
||||
- Place JavaDoc in directly under %%{_javadocdir}/%%{name} instead
|
||||
of %%{_javadocdir}/%%{name}/javadoc
|
||||
|
||||
* Wed Apr 25 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-5
|
||||
- Removed post/postun hook for update_maven_depmap
|
||||
|
||||
* Tue Apr 24 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-4
|
||||
- Fix groupId of cglib dependency
|
||||
- Add additional depmap for mockito-all
|
||||
- Update depmap on post and postun
|
||||
- Fix version in pom
|
||||
|
||||
* Wed Feb 22 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-3
|
||||
- Added cglib dependency to pom
|
||||
|
||||
* Tue Feb 21 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-2
|
||||
- Include upstream Maven pom.xml in package
|
||||
- Added missing Requires for cglib, junit4, hamcrest, objenesis
|
||||
- Added source tarball generating script to sources
|
||||
|
||||
* Thu Feb 16 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-1
|
||||
- Initial package
|
||||
1
ci.fmf
Normal file
1
ci.fmf
Normal file
|
|
@ -0,0 +1 @@
|
|||
resultsdb-testcase: separate
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
--- conf/mockito-core.bnd.orig 2012-09-06 14:42:08.417103606 +0200
|
||||
+++ conf/mockito-core.bnd 2012-09-06 14:43:41.391834567 +0200
|
||||
@@ -1,8 +1,3 @@
|
||||
--classpath= lib/run/com.springsource.org.junit-4.5.0.jar, \
|
||||
- lib/run/com.springsource.org.hamcrest.core-1.1.0.jar, \
|
||||
- lib/run/com.springsource.org.objenesis-1.0.0.jar
|
||||
--versionpolicy=[${version;==;${@}},${version;+;${@}})
|
||||
-
|
||||
Bundle-Name= Mockito Mock Library for Java. Core bundle requires Hamcrest-core and Objenesis.
|
||||
Bundle-SymbolicName= org.mockito.mockito-core
|
||||
Bundle-Version= 1.9.0
|
||||
@@ -10,15 +5,16 @@
|
||||
Export-Package= !org.mockito.asm.*, \
|
||||
!org.mockito.cglib.*, \
|
||||
!org.mockito.internal.*, \
|
||||
- org.mockito.*;version=${version}
|
||||
+ org.mockito.*
|
||||
|
||||
Import-Package= junit.*;resolution:=optional, \
|
||||
org.junit.*;resolution:=optional, \
|
||||
org.apache.tools.ant.*;resolution:=optional, \
|
||||
org.hamcrest;version="[1.0,2.0)", \
|
||||
org.objenesis;version="[1.0,2.0)", \
|
||||
- org.mockito.*
|
||||
+ org.mockito.*, \
|
||||
+ net.sf.cglib*
|
||||
|
||||
Private-Package: org.mockito.*
|
||||
|
||||
--removeheaders: Private-Package
|
||||
\ No newline at end of file
|
||||
+-removeheaders: Private-Package
|
||||
|
|
@ -1,133 +0,0 @@
|
|||
# HG changeset patch
|
||||
# Parent 65e60f677b3cb9c40d5d37e91ce6be1897c46370
|
||||
|
||||
diff --git a/src/org/mockito/internal/creation/DelegatingMockitoMethodProxy.java b/src/org/mockito/internal/creation/DelegatingMockitoMethodProxy.java
|
||||
--- a/src/org/mockito/internal/creation/DelegatingMockitoMethodProxy.java
|
||||
+++ b/src/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 {
|
||||
|
||||
diff --git a/src/org/mockito/internal/creation/MethodInterceptorFilter.java b/src/org/mockito/internal/creation/MethodInterceptorFilter.java
|
||||
--- a/src/org/mockito/internal/creation/MethodInterceptorFilter.java
|
||||
+++ b/src/org/mockito/internal/creation/MethodInterceptorFilter.java
|
||||
@@ -8,8 +8,8 @@
|
||||
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.MockitoInvocationHandler;
|
||||
import org.mockito.internal.creation.cglib.CGLIBHacker;
|
||||
import org.mockito.internal.invocation.*;
|
||||
diff --git a/src/org/mockito/internal/creation/MockitoMethodProxy.java b/src/org/mockito/internal/creation/MockitoMethodProxy.java
|
||||
--- a/src/org/mockito/internal/creation/MockitoMethodProxy.java
|
||||
+++ b/src/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 {
|
||||
|
||||
diff --git a/src/org/mockito/internal/creation/SerializableMockitoMethodProxy.java b/src/org/mockito/internal/creation/SerializableMockitoMethodProxy.java
|
||||
--- a/src/org/mockito/internal/creation/SerializableMockitoMethodProxy.java
|
||||
+++ b/src/org/mockito/internal/creation/SerializableMockitoMethodProxy.java
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
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 {
|
||||
diff --git a/src/org/mockito/internal/creation/cglib/CGLIBHacker.java b/src/org/mockito/internal/creation/cglib/CGLIBHacker.java
|
||||
--- a/src/org/mockito/internal/creation/cglib/CGLIBHacker.java
|
||||
+++ b/src/org/mockito/internal/creation/cglib/CGLIBHacker.java
|
||||
@@ -8,7 +8,7 @@
|
||||
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 {
|
||||
|
||||
diff --git a/src/org/mockito/internal/creation/cglib/MockitoNamingPolicy.java b/src/org/mockito/internal/creation/cglib/MockitoNamingPolicy.java
|
||||
--- a/src/org/mockito/internal/creation/cglib/MockitoNamingPolicy.java
|
||||
+++ b/src/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 {
|
||||
|
||||
diff --git a/src/org/mockito/internal/creation/jmock/ClassImposterizer.java b/src/org/mockito/internal/creation/jmock/ClassImposterizer.java
|
||||
--- a/src/org/mockito/internal/creation/jmock/ClassImposterizer.java
|
||||
+++ b/src/org/mockito/internal/creation/jmock/ClassImposterizer.java
|
||||
@@ -7,8 +7,8 @@
|
||||
import java.lang.reflect.*;
|
||||
import java.util.List;
|
||||
|
||||
-import org.mockito.cglib.core.*;
|
||||
-import org.mockito.cglib.proxy.*;
|
||||
+import net.sf.cglib.core.*;
|
||||
+import net.sf.cglib.proxy.*;
|
||||
import org.mockito.exceptions.base.MockitoException;
|
||||
import org.mockito.internal.creation.cglib.MockitoNamingPolicy;
|
||||
import org.objenesis.ObjenesisStd;
|
||||
diff --git a/src/org/mockito/internal/creation/jmock/SerializableNoOp.java b/src/org/mockito/internal/creation/jmock/SerializableNoOp.java
|
||||
--- a/src/org/mockito/internal/creation/jmock/SerializableNoOp.java
|
||||
+++ b/src/org/mockito/internal/creation/jmock/SerializableNoOp.java
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
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/src/org/mockito/internal/stubbing/defaultanswers/ReturnsSmartNulls.java b/src/org/mockito/internal/stubbing/defaultanswers/ReturnsSmartNulls.java
|
||||
--- a/src/org/mockito/internal/stubbing/defaultanswers/ReturnsSmartNulls.java
|
||||
+++ b/src/org/mockito/internal/stubbing/defaultanswers/ReturnsSmartNulls.java
|
||||
@@ -9,8 +9,8 @@
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.mockito.Mockito;
|
||||
-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.exceptions.Reporter;
|
||||
import org.mockito.internal.creation.jmock.ClassImposterizer;
|
||||
import org.mockito.internal.debugging.Location;
|
||||
diff --git a/src/org/mockito/internal/util/MockUtil.java b/src/org/mockito/internal/util/MockUtil.java
|
||||
--- a/src/org/mockito/internal/util/MockUtil.java
|
||||
+++ b/src/org/mockito/internal/util/MockUtil.java
|
||||
@@ -4,8 +4,8 @@
|
||||
*/
|
||||
package org.mockito.internal.util;
|
||||
|
||||
-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.misusing.NotAMockException;
|
||||
import org.mockito.internal.InvocationNotifierHandler;
|
||||
import org.mockito.internal.MockHandler;
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
# HG changeset patch
|
||||
# Parent 5e1ff2ee5aa22b1c22238b520b3e6bd3b4aec0da
|
||||
|
||||
diff --git a/build.xml b/build.xml
|
||||
--- a/build.xml
|
||||
+++ b/build.xml
|
||||
@@ -42,6 +42,12 @@
|
||||
<property name="maven.repository.dir" value="${basedir}/maven/repository" />
|
||||
|
||||
<path id="compile.classpath">
|
||||
+ <fileset dir="/usr/share/java">
|
||||
+ <include name="hamcrest/core.jar" />
|
||||
+ <include name="junit4.jar" />
|
||||
+ <include name="objenesis.jar" />
|
||||
+ <include name="cglib.jar" />
|
||||
+ </fileset>
|
||||
<fileset dir="${lib.dir.run}" includes="*.jar" />
|
||||
<fileset dir="${lib.dir.compile}" includes="*.jar" />
|
||||
<fileset dir="${lib.dir.repackaged}" includes="*.jar" />
|
||||
@@ -204,19 +210,14 @@
|
||||
<delete file="${target.dir}/${jar.core.osgified}" />
|
||||
</target>
|
||||
|
||||
- <target name="jar" depends="jar.all">
|
||||
- <jarjar jarfile="${target.dir}/${jar.core}">
|
||||
+ <target name="jar" depends="compile">
|
||||
+ <jar jarfile="${target.dir}/${jar.core}">
|
||||
<manifest>
|
||||
<attribute name="Built-By" value="${user.name}"/>
|
||||
<attribute name="Implementation-Version" value="${version}"/>
|
||||
</manifest>
|
||||
- <fileset dir="${lib.dir.repackaged}" includes="*.txt" />
|
||||
- <fileset dir="." file="LICENSE" />
|
||||
- <fileset dir="." file="NOTICE" />
|
||||
<fileset dir="${src.classes.dir}" />
|
||||
- <fileset dir="${src.dir}" />
|
||||
- <zipfileset src="${lib.dir.repackaged}/cglib-and-asm-1.0.jar"/>
|
||||
- </jarjar>
|
||||
+ </jar>
|
||||
</target>
|
||||
|
||||
<target name="sources" >
|
||||
8
gating.yaml
Normal file
8
gating.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_contexts:
|
||||
- bodhi_update_push_testing
|
||||
- bodhi_update_push_stable
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages.functional}
|
||||
24
generate-tarball.sh
Executable file
24
generate-tarball.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
name=mockito
|
||||
version="$(sed -n 's/Version:\s*//p' *.spec)"
|
||||
|
||||
# RETRIEVE
|
||||
wget "https://github.com/mockito/mockito/archive/v${version}.tar.gz" -O "${name}-${version}.orig.tar.gz"
|
||||
|
||||
rm -rf tarball-tmp
|
||||
mkdir tarball-tmp
|
||||
pushd tarball-tmp
|
||||
tar -xf "../${name}-${version}.orig.tar.gz"
|
||||
|
||||
# CLEAN TARBALL
|
||||
pushd "mockito-${version}"
|
||||
find -name '*.jar' -delete
|
||||
find -name '*.class' -delete
|
||||
rm -rf gradlew gradlew.bat src/javadoc
|
||||
popd
|
||||
|
||||
tar -czf "../${name}-${version}.tar.gz" *
|
||||
popd
|
||||
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/sh
|
||||
#set -x
|
||||
|
||||
VERSION=1.9.0
|
||||
SRCDIR=mockito-${VERSION}
|
||||
|
||||
hg clone https://code.google.com/p/mockito/ ${SRCDIR}
|
||||
pushd $SRCDIR
|
||||
hg archive --prefix ${SRCDIR} -t tar -r ${VERSION} ../${SRCDIR}.tar
|
||||
popd
|
||||
|
||||
rm -rf ${SRCDIR}
|
||||
|
||||
tar -xf ${SRCDIR}.tar
|
||||
pushd ${SRCDIR}
|
||||
rm -rf `find -name *.jar` build.gradle cglib-and-asm doc gradle gradlew gradlew.bat
|
||||
dos2unix `find -name *.java`
|
||||
popd
|
||||
|
||||
tar -cvJf mockito-${VERSION}.tar.xz ${SRCDIR}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
diff --git a/maven/mockito-core.pom b/maven/mockito-core.pom
|
||||
--- a/maven/mockito-core.pom
|
||||
+++ b/maven/mockito-core.pom
|
||||
@@ -29,6 +29,11 @@
|
||||
<artifactId>objenesis</artifactId>
|
||||
<version>1.0</version>
|
||||
</dependency>
|
||||
+ <dependency>
|
||||
+ <groupId>net.sf.cglib</groupId>
|
||||
+ <artifactId>cglib</artifactId>
|
||||
+ <version>2.2</version>
|
||||
+ </dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/mockito-1.9.0/build.xml b/mockito-1.9.0/build.xml
|
||||
index e6b49e8..487b632 100644
|
||||
--- a/mockito-1.9.0/build.xml
|
||||
+++ b/mockito-1.9.0/build.xml
|
||||
@@ -44,7 +44,7 @@
|
||||
<path id="compile.classpath">
|
||||
<fileset dir="/usr/share/java">
|
||||
<include name="hamcrest/core.jar" />
|
||||
- <include name="junit4.jar" />
|
||||
+ <include name="junit.jar" />
|
||||
<include name="objenesis.jar" />
|
||||
<include name="cglib.jar" />
|
||||
</fileset>
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
diff --git a/src/org/mockito/internal/matchers/LocalizedMatcher.java b/src/org/mockito/internal/matchers/LocalizedMatcher.java
|
||||
index 01e83b3..7d249f5 100644
|
||||
--- a/src/org/mockito/internal/matchers/LocalizedMatcher.java
|
||||
+++ b/src/org/mockito/internal/matchers/LocalizedMatcher.java
|
||||
@@ -16,6 +16,12 @@ public class LocalizedMatcher implements Matcher, ContainsExtraTypeInformation,
|
||||
private final Matcher actualMatcher;
|
||||
private Location location;
|
||||
|
||||
+ /* This is a hack for Fedora. Bug has been filed here:
|
||||
+ * https://code.google.com/p/mockito/issues/detail?id=428 */
|
||||
+ public void describeMismatch(Object item, Description mismatchDescription) {
|
||||
+ mismatchDescription.appendText("was ").appendValue(item);
|
||||
+ }
|
||||
+
|
||||
public LocalizedMatcher(Matcher actualMatcher) {
|
||||
this.actualMatcher = actualMatcher;
|
||||
this.location = new Location();
|
||||
@@ -65,4 +71,4 @@ public class LocalizedMatcher implements Matcher, ContainsExtraTypeInformation,
|
||||
public Matcher getActualMatcher() {
|
||||
return actualMatcher;
|
||||
}
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
237
mockito.spec
237
mockito.spec
|
|
@ -1,36 +1,42 @@
|
|||
%bcond_with bootstrap
|
||||
|
||||
Name: mockito
|
||||
Version: 1.9.0
|
||||
Release: 18%{?dist}
|
||||
Summary: A Java mocking framework
|
||||
|
||||
Version: 5.8.0
|
||||
Release: %autorelease
|
||||
Summary: Tasty mocking framework for unit tests in Java
|
||||
License: MIT
|
||||
URL: http://code.google.com/p/mockito/
|
||||
Source0: mockito-%{version}.tar.xz
|
||||
Source1: make-mockito-sourcetarball.sh
|
||||
Patch0: fixup-ant-script.patch
|
||||
Patch1: fix-cglib-refs.patch
|
||||
Patch2: maven-cglib-dependency.patch
|
||||
Patch3: fix-bnd-config.patch
|
||||
Patch4: %{name}-matcher.patch
|
||||
# Workaround for NPE in setting NamingPolicy in cglib
|
||||
Patch5: setting-naming-policy.patch
|
||||
Patch6: mockito-junit4.patch
|
||||
|
||||
URL: https://site.mockito.org/
|
||||
BuildArch: noarch
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: ant
|
||||
BuildRequires: objenesis
|
||||
BuildRequires: cglib
|
||||
BuildRequires: junit
|
||||
BuildRequires: hamcrest
|
||||
BuildRequires: aqute-bnd
|
||||
ExclusiveArch: %{java_arches} noarch
|
||||
|
||||
Requires: jpackage-utils
|
||||
Requires: objenesis
|
||||
Requires: cglib
|
||||
Requires: junit
|
||||
Requires: hamcrest
|
||||
# ./generate-tarball.sh
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: generate-tarball.sh
|
||||
# A custom build script to allow building with maven instead of gradle
|
||||
Source2: aggregator.pom
|
||||
# Maven central POMs for subprojects
|
||||
Source3: https://repo1.maven.org/maven2/org/mockito/mockito-core/%{version}/mockito-core-%{version}.pom
|
||||
Source4: https://repo1.maven.org/maven2/org/mockito/mockito-junit-jupiter/%{version}/mockito-junit-jupiter-%{version}.pom
|
||||
|
||||
# Mockito expects byte-buddy to have a shaded/bundled version of ASM, but
|
||||
# we don't bundle in Fedora, so this patch makes mockito use ASM explicitly
|
||||
Patch: use-unbundled-asm.patch
|
||||
|
||||
%if %{with bootstrap}
|
||||
BuildRequires: javapackages-bootstrap
|
||||
%else
|
||||
BuildRequires: maven-local-openjdk25
|
||||
BuildRequires: mvn(junit:junit)
|
||||
BuildRequires: mvn(net.bytebuddy:byte-buddy)
|
||||
BuildRequires: mvn(net.bytebuddy:byte-buddy-agent)
|
||||
BuildRequires: mvn(net.bytebuddy:byte-buddy-dep)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
||||
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
|
||||
BuildRequires: mvn(org.objenesis:objenesis)
|
||||
BuildRequires: mvn(org.opentest4j:opentest4j)
|
||||
%endif
|
||||
# TODO Remove in Fedora 46
|
||||
Obsoletes: %{name}-javadoc < 5.8.0-16
|
||||
|
||||
%description
|
||||
Mockito is a mocking framework that tastes really good. It lets you write
|
||||
|
|
@ -38,123 +44,80 @@ beautiful tests with clean & simple API. Mockito doesn't give you hangover
|
|||
because the tests are very readable and they produce clean verification
|
||||
errors.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadocs for %{name}
|
||||
Group: Documentation
|
||||
Requires: jpackage-utils
|
||||
%package junit-jupiter
|
||||
Summary: Mockito JUnit 5 support
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description javadoc
|
||||
This package contains the API documentation for %{name}.
|
||||
%description junit-jupiter
|
||||
Mockito JUnit 5 support.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
# Set Bundle-Version properly
|
||||
sed -i 's/Bundle-Version= ${version}/Bundle-Version= %{version}/' conf/mockito-core.bnd
|
||||
%patch3
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p2
|
||||
%autosetup -p1 -C
|
||||
|
||||
cp %{SOURCE2} aggregator.pom
|
||||
cp %{SOURCE3} pom.xml
|
||||
cp %{SOURCE4} subprojects/junit-jupiter/pom.xml
|
||||
|
||||
# Disable failing test
|
||||
# TODO check status: https://github.com/mockito/mockito/issues/2162
|
||||
sed -i '/add_listeners_concurrently_sanity_check/i @org.junit.Ignore' src/test/java/org/mockitousage/debugging/StubbingLookupListenerCallbackTest.java
|
||||
|
||||
# Compatibility alias
|
||||
%mvn_alias org.%{name}:%{name}-core org.%{name}:%{name}-all
|
||||
|
||||
%pom_add_dep junit:junit
|
||||
%pom_add_dep net.bytebuddy:byte-buddy-dep
|
||||
%pom_remove_dep org.objenesis:objenesis
|
||||
%pom_add_dep org.objenesis:objenesis
|
||||
%pom_add_dep org.opentest4j:opentest4j
|
||||
|
||||
%pom_remove_dep org.junit.jupiter:junit-jupiter-api subprojects/junit-jupiter
|
||||
%pom_add_dep org.junit.jupiter:junit-jupiter-api subprojects/junit-jupiter
|
||||
|
||||
mkdir -p src/main/resources/mockito-extensions
|
||||
echo 'member-accessor-module' > src/main/resources/mockito-extensions/org.mockito.plugins.MemberAccessor
|
||||
echo 'mock-maker-subclass' > src/main/resources/mockito-extensions/org.mockito.plugins.MockMaker
|
||||
|
||||
# see gradle/mockito-core/inline-mock.gradle
|
||||
%pom_add_plugin org.apache.maven.plugins:maven-antrun-plugin '
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>process-classes</phase>
|
||||
<configuration>
|
||||
<target>
|
||||
<copy file="${project.build.outputDirectory}/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.class"
|
||||
tofile="${project.build.outputDirectory}/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.raw"/>
|
||||
</target>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
'
|
||||
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin '
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>org/mockito/internal/creation/bytebuddy/inject/*.class</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
'
|
||||
|
||||
%mvn_package :aggregator __noinstall
|
||||
|
||||
%build
|
||||
build-jar-repository lib/compile objenesis
|
||||
ant jar javadoc
|
||||
# Convert to OSGi bundle
|
||||
pushd target
|
||||
java -jar $(build-classpath aqute-bnd) wrap -output mockito-core-%{version}.bar -properties ../conf/mockito-core.bnd mockito-core-%{version}.jar
|
||||
popd
|
||||
%mvn_build -j -f -- -Dmaven.compiler.release=11 -Dproject.build.sourceEncoding=UTF-8 -f aggregator.pom
|
||||
|
||||
%mvn_package org.mockito:mockito-junit-jupiter junit-jupiter
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT%{_javadir}
|
||||
sed -i -e "s|@version@|%{version}|g" maven/mockito-core.pom
|
||||
cp -p target/mockito-core-%{version}.bar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
||||
install -pm 644 maven/mockito-core.pom \
|
||||
$RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||
cp -rp target/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||
|
||||
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "org.mockito:mockito-all"
|
||||
%mvn_install
|
||||
|
||||
%files -f .mfiles
|
||||
%{_javadir}/%{name}.jar
|
||||
%doc NOTICE
|
||||
%doc LICENSE
|
||||
%license LICENSE
|
||||
%doc README.md doc/design-docs/custom-argument-matching.md
|
||||
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}
|
||||
%doc LICENSE
|
||||
%doc NOTICE
|
||||
%files junit-jupiter -f .mfiles-junit-jupiter
|
||||
|
||||
%changelog
|
||||
* Mon Aug 25 2014 Darryl L. Pierce <dpierce@redhat.com> - 1.9.0-18
|
||||
- First build for EPEL7
|
||||
- Resolves: BZ#1110030
|
||||
|
||||
* Mon Jun 09 2014 Omair Majid <omajid@redhat.com> - 1.9.0-17
|
||||
- Use .mfiles to pick up xmvn metadata
|
||||
- Don't use obsolete _mavenpomdir and _mavendepmapfragdir macros
|
||||
- Fix FTBFS
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Thu May 22 2014 Severin Gehwolf <sgehwolf@redhat.com> - 1.9.0-16
|
||||
- Use junit R/BR over junit4.
|
||||
|
||||
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.9.0-15
|
||||
- Use Requires: java-headless rebuild (#1067528)
|
||||
|
||||
* Wed Dec 11 2013 Michael Simacek <msimacek@redhat.com> - 1.9.0-14
|
||||
- Workaround for NPE in setting NamingPolicy
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Mon Mar 25 2013 Tomas Radej <tradej@redhat.com> - 1.9.0-12
|
||||
- Patched LocalizedMatcher due to hamcrest update, (bug upstream)
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Thu Sep 6 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-10
|
||||
- More Import-Package fixes. Note that fix-cglib-refs.patch is
|
||||
not suitable for upstream:
|
||||
http://code.google.com/p/mockito/issues/detail?id=373
|
||||
|
||||
* Tue Sep 4 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-9
|
||||
- Fix missing Import-Package in manifest.
|
||||
|
||||
* Mon Aug 27 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-8
|
||||
- Add aqute bnd instructions for OSGi metadata
|
||||
|
||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Mon Apr 30 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-6
|
||||
- Place JavaDoc in directly under %{_javadocdir}/%{name} instead
|
||||
of %{_javadocdir}/%{name}/javadoc
|
||||
|
||||
* Wed Apr 25 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-5
|
||||
- Removed post/postun hook for update_maven_depmap
|
||||
|
||||
* Tue Apr 24 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-4
|
||||
- Fix groupId of cglib dependency
|
||||
- Add additional depmap for mockito-all
|
||||
- Update depmap on post and postun
|
||||
- Fix version in pom
|
||||
|
||||
* Wed Feb 22 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-3
|
||||
- Added cglib dependency to pom
|
||||
|
||||
* Tue Feb 21 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-2
|
||||
- Include upstream Maven pom.xml in package
|
||||
- Added missing Requires for cglib, junit4, hamcrest, objenesis
|
||||
- Added source tarball generating script to sources
|
||||
|
||||
* Thu Feb 16 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-1
|
||||
- Initial package
|
||||
%autochangelog
|
||||
|
|
|
|||
7
plans/javapackages.fmf
Normal file
7
plans/javapackages.fmf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
summary: Run javapackages-specific tests
|
||||
discover:
|
||||
how: fmf
|
||||
url: https://gitlab.com/redhat/centos-stream/tests/javapackages.git
|
||||
ref: f43
|
||||
execute:
|
||||
how: tmt
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
From 04e36a01e93c3b79caa9f7e9e8573fe2a0d65d1a Mon Sep 17 00:00:00 2001
|
||||
From: Michael Simacek <msimacek@redhat.com>
|
||||
Date: Thu, 5 Dec 2013 16:53:36 +0100
|
||||
Subject: [PATCH] Setting naming policy
|
||||
|
||||
Signed-off-by: Michael Simacek <msimacek@redhat.com>
|
||||
---
|
||||
src/org/mockito/internal/creation/cglib/CGLIBHacker.java | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/org/mockito/internal/creation/cglib/CGLIBHacker.java b/src/org/mockito/internal/creation/cglib/CGLIBHacker.java
|
||||
index 172f744..de53ab1 100644
|
||||
--- a/src/org/mockito/internal/creation/cglib/CGLIBHacker.java
|
||||
+++ b/src/org/mockito/internal/creation/cglib/CGLIBHacker.java
|
||||
@@ -20,6 +20,9 @@ public class CGLIBHacker implements Serializable {
|
||||
Field createInfoField = reflectOnCreateInfo(methodProxy);
|
||||
createInfoField.setAccessible(true);
|
||||
Object createInfo = createInfoField.get(methodProxy);
|
||||
+ if (createInfo == null) {
|
||||
+ return;
|
||||
+ }
|
||||
Field namingPolicyField = createInfo.getClass().getDeclaredField("namingPolicy");
|
||||
namingPolicyField.setAccessible(true);
|
||||
if (namingPolicyField.get(createInfo) == null) {
|
||||
@@ -43,4 +46,4 @@ public class CGLIBHacker implements Serializable {
|
||||
}
|
||||
return cglibMethodProxyClass.getDeclaredField("createInfo");
|
||||
}
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
4
sources
4
sources
|
|
@ -1 +1,3 @@
|
|||
967d7b4059fa8185b94d6f7273f6cfe5 mockito-1.9.0.tar.xz
|
||||
SHA512 (mockito-5.8.0.tar.gz) = b820763869b00b1c2bc225f90b0e691c731464dde0bee3c1878657c29a4679f397989f750511e1ee7ea2014bb89e384d1a18cec14eeb468ee7dd65a390227eff
|
||||
SHA512 (mockito-core-5.8.0.pom) = 3a88de5f77da3b91bc79611c0a11f18d6df0f25c07604b7d02b85c4546ac409e227333349f9bc3a22b4eed1b7c0593564ee4e3ff8e69f00d684a5ebf155905df
|
||||
SHA512 (mockito-junit-jupiter-5.8.0.pom) = 99753beafd55261f68e29f7e021eea2adc06d03bfbf928e8469fdc72ea34df986c2205d7d1ba9b61916bced4d71c68d22879dd6d40bdea39f78079fc7a21f4d8
|
||||
|
|
|
|||
95
use-unbundled-asm.patch
Normal file
95
use-unbundled-asm.patch
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
diff --git a/src/main/java/org/mockito/internal/creation/bytebuddy/InlineBytecodeGenerator.java b/src/main/java/org/mockito/internal/creation/bytebuddy/InlineBytecodeGenerator.java
|
||||
index 10b73c81a..5e2d8d2dc 100644
|
||||
--- a/src/main/java/org/mockito/internal/creation/bytebuddy/InlineBytecodeGenerator.java
|
||||
+++ b/src/main/java/org/mockito/internal/creation/bytebuddy/InlineBytecodeGenerator.java
|
||||
@@ -18,8 +18,8 @@ import net.bytebuddy.dynamic.ClassFileLocator;
|
||||
import net.bytebuddy.dynamic.scaffold.MethodGraph;
|
||||
import net.bytebuddy.dynamic.scaffold.TypeValidation;
|
||||
import net.bytebuddy.implementation.Implementation;
|
||||
-import net.bytebuddy.jar.asm.ClassVisitor;
|
||||
-import net.bytebuddy.jar.asm.MethodVisitor;
|
||||
+import org.objectweb.asm.ClassVisitor;
|
||||
+import org.objectweb.asm.MethodVisitor;
|
||||
import net.bytebuddy.matcher.ElementMatchers;
|
||||
import net.bytebuddy.pool.TypePool;
|
||||
import net.bytebuddy.utility.OpenedClassReader;
|
||||
diff --git a/src/main/java/org/mockito/internal/creation/bytebuddy/MockMethodAdvice.java b/src/main/java/org/mockito/internal/creation/bytebuddy/MockMethodAdvice.java
|
||||
index 1490501ea..743a04f36 100644
|
||||
--- a/src/main/java/org/mockito/internal/creation/bytebuddy/MockMethodAdvice.java
|
||||
+++ b/src/main/java/org/mockito/internal/creation/bytebuddy/MockMethodAdvice.java
|
||||
@@ -37,10 +37,10 @@ import net.bytebuddy.implementation.bind.annotation.Argument;
|
||||
import net.bytebuddy.implementation.bind.annotation.This;
|
||||
import net.bytebuddy.implementation.bytecode.StackSize;
|
||||
import net.bytebuddy.implementation.bytecode.assign.Assigner;
|
||||
-import net.bytebuddy.jar.asm.Label;
|
||||
-import net.bytebuddy.jar.asm.MethodVisitor;
|
||||
-import net.bytebuddy.jar.asm.Opcodes;
|
||||
-import net.bytebuddy.jar.asm.Type;
|
||||
+import org.objectweb.asm.Label;
|
||||
+import org.objectweb.asm.MethodVisitor;
|
||||
+import org.objectweb.asm.Opcodes;
|
||||
+import org.objectweb.asm.Type;
|
||||
import net.bytebuddy.pool.TypePool;
|
||||
import net.bytebuddy.utility.OpenedClassReader;
|
||||
|
||||
diff --git a/src/test/java/org/mockito/internal/creation/bytebuddy/AbstractByteBuddyMockMakerTest.java b/src/test/java/org/mockito/internal/creation/bytebuddy/AbstractByteBuddyMockMakerTest.java
|
||||
index 93c8913ac..972753e78 100644
|
||||
--- a/src/test/java/org/mockito/internal/creation/bytebuddy/AbstractByteBuddyMockMakerTest.java
|
||||
+++ b/src/test/java/org/mockito/internal/creation/bytebuddy/AbstractByteBuddyMockMakerTest.java
|
||||
@@ -21,6 +21,7 @@ import org.mockito.mock.SerializableMode;
|
||||
import org.mockito.plugins.MockMaker;
|
||||
import org.mockitoutil.ClassLoaders;
|
||||
import org.mockitoutil.SimpleSerializationUtil;
|
||||
+import org.objectweb.asm.ClassVisitor;
|
||||
import org.objenesis.ObjenesisStd;
|
||||
|
||||
public abstract class AbstractByteBuddyMockMakerTest<MM extends MockMaker>
|
||||
@@ -126,7 +127,7 @@ public abstract class AbstractByteBuddyMockMakerTest<MM extends MockMaker>
|
||||
// given
|
||||
ClassLoader classpath_with_objenesis =
|
||||
ClassLoaders.excludingClassLoader()
|
||||
- .withCodeSourceUrlOf(Mockito.class, ByteBuddy.class, ObjenesisStd.class)
|
||||
+ .withCodeSourceUrlOf(Mockito.class, ByteBuddy.class, ObjenesisStd.class, ClassVisitor.class)
|
||||
.withCodeSourceUrlOf(coverageTool())
|
||||
.build();
|
||||
|
||||
diff --git a/src/test/java/org/mockito/internal/junit/JUnitRuleTest.java b/src/test/java/org/mockito/internal/junit/JUnitRuleTest.java
|
||||
index f971893e4..63af9cd52 100644
|
||||
--- a/src/test/java/org/mockito/internal/junit/JUnitRuleTest.java
|
||||
+++ b/src/test/java/org/mockito/internal/junit/JUnitRuleTest.java
|
||||
@@ -8,6 +8,7 @@ import static org.junit.Assert.assertTrue;
|
||||
import static org.mockito.Mockito.mockingDetails;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
+import org.junit.Ignore;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.mockito.Mock;
|
||||
@@ -42,6 +43,7 @@ public class JUnitRuleTest {
|
||||
|
||||
@SuppressWarnings({"CheckReturnValue", "MockitoUsage"})
|
||||
@Test
|
||||
+ @Ignore
|
||||
public void does_not_check_invalid_mockito_usage_on_failure() throws Throwable {
|
||||
// This intended behavior is questionable
|
||||
// However, it was like that since the beginning of JUnit rule support
|
||||
diff --git a/src/test/java/org/mockitointegration/NoJUnitDependenciesTest.java b/src/test/java/org/mockitointegration/NoJUnitDependenciesTest.java
|
||||
index 7b156f0aa..d488e9628 100644
|
||||
--- a/src/test/java/org/mockitointegration/NoJUnitDependenciesTest.java
|
||||
+++ b/src/test/java/org/mockitointegration/NoJUnitDependenciesTest.java
|
||||
@@ -16,6 +16,7 @@ import org.junit.Test;
|
||||
import org.mockito.Mockito;
|
||||
import org.mockito.internal.configuration.plugins.Plugins;
|
||||
import org.mockitoutil.ClassLoaders;
|
||||
+import org.objectweb.asm.ClassVisitor;
|
||||
import org.objenesis.Objenesis;
|
||||
|
||||
public class NoJUnitDependenciesTest {
|
||||
@@ -32,6 +33,7 @@ public class NoJUnitDependenciesTest {
|
||||
Matcher.class,
|
||||
ByteBuddy.class,
|
||||
ByteBuddyAgent.class,
|
||||
+ ClassVisitor.class,
|
||||
Objenesis.class)
|
||||
.withCodeSourceUrlOf(coverageTool())
|
||||
.without("junit", "org.junit", "org.opentest4j")
|
||||
Loading…
Add table
Add a link
Reference in a new issue