Compare commits

...

No commits in common. 'c9' and 'i10cs' have entirely different histories.
c9 ... i10cs

2
.gitignore vendored

@ -1 +1 @@
SOURCES/mockito-3.7.13.tar.gz
SOURCES/mockito-5.8.0.tar.gz

@ -1 +1 @@
e95d6ff6732c8b2e2ff61ca4e68b89f5ff2539f9 SOURCES/mockito-3.7.13.tar.gz
11de281f62d24cef6cf3b90dced0439dbca0956e SOURCES/mockito-5.8.0.tar.gz

@ -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>

@ -13,9 +13,11 @@ 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

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.8.0</version>
<name>mockito-core</name>
<description>Mockito mock objects library core API and implementation</description>
<url>https://github.com/mockito/mockito</url>
<licenses>
<license>
<name>MIT</name>
<url>https://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>mockitoguy</id>
<name>Szczepan Faber</name>
<url>https://github.com/mockitoguy</url>
<roles>
<role>Core developer</role>
</roles>
</developer>
<developer>
<id>bric3</id>
<name>Brice Dutheil</name>
<url>https://github.com/bric3</url>
<roles>
<role>Core developer</role>
</roles>
</developer>
<developer>
<id>raphw</id>
<name>Rafael Winterhalter</name>
<url>https://github.com/raphw</url>
<roles>
<role>Core developer</role>
</roles>
</developer>
<developer>
<id>TimvdLippe</id>
<name>Tim van der Lippe</name>
<url>https://github.com/TimvdLippe</url>
<roles>
<role>Core developer</role>
</roles>
</developer>
</developers>
<scm>
<url>https://github.com/mockito/mockito.git</url>
</scm>
<issueManagement>
<system>GitHub issues</system>
<url>https://github.com/mockito/mockito/issues</url>
</issueManagement>
<ciManagement>
<system>GH Actions</system>
<url>https://github.com/mockito/mockito/actions</url>
</ciManagement>
<dependencies>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.14.10</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<version>1.14.10</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
<version>3.3</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>

@ -1,678 +0,0 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>@VERSION@</version>
<name>mockito-core</name>
<packaging>jar</packaging>
<url>https://github.com/mockito/mockito</url>
<description>Mockito mock objects library core API and implementation</description>
<!-- NOTE! This file is loosely based on the mockito-core pom from maven central
but with many additions to allow building and running tests -->
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.9.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<version>1.9.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
<version>3.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.opentest4j</groupId>
<artifactId>opentest4j</artifactId>
<version>1.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<manifestLocation>${project.build.directory}/osgi</manifestLocation>
<instructions>
<_include>-osgi.bnd</_include>
</instructions>
</configuration>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<archive>
<manifestFile>${project.build.directory}/osgi/MANIFEST.MF</manifestFile>
</archive>
<excludes>
<exclude>**/MockMethodDispatcher.class</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<licenses>
<license>
<name>The MIT License</name>
<url>https://github.com/mockito/mockito/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/mockito/mockito.git</url>
</scm>
<issueManagement>
<url>https://github.com/mockito/mockito/issues</url>
<system>GitHub issues</system>
</issueManagement>
<ciManagement>
<url>https://travis-ci.org/mockito/mockito</url>
<system>TravisCI</system>
</ciManagement>
<developers>
<developer>
<id>mockitoguy</id>
<name>Szczepan Faber</name>
<roles>
<role>Core developer</role>
</roles>
<url>https://github.com/mockitoguy</url>
</developer>
<developer>
<id>bric3</id>
<name>Brice Dutheil</name>
<roles>
<role>Core developer</role>
</roles>
<url>https://github.com/bric3</url>
</developer>
<developer>
<id>raphw</id>
<name>Rafael Winterhalter</name>
<roles>
<role>Core developer</role>
</roles>
<url>https://github.com/raphw</url>
</developer>
<developer>
<id>TimvdLippe</id>
<name>Tim van der Lippe</name>
<roles>
<role>Core developer</role>
</roles>
<url>https://github.com/TimvdLippe</url>
</developer>
</developers>
<contributors>
<contributor>
<name>continuous-delivery-drone</name>
<url>https://github.com/continuous-delivery-drone</url>
</contributor>
<contributor>
<name>shipkit.org automated bot</name>
<url>https://github.com/shipkit-org</url>
</contributor>
<contributor>
<name>Marcin Zajączkowski</name>
<url>https://github.com/szpak</url>
</contributor>
<contributor>
<name>Pascal Schumacher</name>
<url>https://github.com/PascalSchumacher</url>
</contributor>
<contributor>
<name>Igor Czechowski</name>
<url>https://github.com/iczechowski</url>
</contributor>
<contributor>
<name>Bartosz Bańkowski</name>
<url>https://github.com/bbankowski</url>
</contributor>
<contributor>
<name>Erhard Pointl</name>
<url>https://github.com/epeee</url>
</contributor>
<contributor>
<name>Allon Murienik</name>
<url>https://github.com/mureinik</url>
</contributor>
<contributor>
<name>Christian Schwarz</name>
<url>https://github.com/ChristianSchwarz</url>
</contributor>
<contributor>
<name>Lukasz Szewc</name>
<url>https://github.com/lukasz-szewc</url>
</contributor>
<contributor>
<name>Marcin Grzejszczak</name>
<url>https://github.com/marcingrzejszczak</url>
</contributor>
<contributor>
<name>Marc Philipp</name>
<url>https://github.com/marcphilipp</url>
</contributor>
<contributor>
<name>Sangwoo Lee</name>
<url>https://github.com/marchpig</url>
</contributor>
<contributor>
<name>Philip P. Moltmann</name>
<url>https://github.com/moltmann</url>
</contributor>
<contributor>
<name>Tim Perry</name>
<url>https://github.com/pimterry</url>
</contributor>
<contributor>
<name>David J. M. Karlsen</name>
<url>https://github.com/davidkarlsen</url>
</contributor>
<contributor>
<name>Dawud-xx</name>
<url>https://github.com/Dawud-xx</url>
</contributor>
<contributor>
<name>Lovro Pandžić</name>
<url>https://github.com/lpandzic</url>
</contributor>
<contributor>
<name>Werner Beroux</name>
<url>https://github.com/wernight</url>
</contributor>
<contributor>
<name>Tsuyoshi Murakami</name>
<url>https://github.com/tmurakami</url>
</contributor>
<contributor>
<name>Serge Bishyr</name>
<url>https://github.com/SeriyBg</url>
</contributor>
<contributor>
<name>Dmitry Timofeev</name>
<url>https://github.com/dmitry-timofeev</url>
</contributor>
<contributor>
<name>jerzykrlk</name>
<url>https://github.com/jerzykrlk</url>
</contributor>
<contributor>
<name>alberskib</name>
<url>https://github.com/alberskib</url>
</contributor>
<contributor>
<name>Joseph Walton</name>
<url>https://github.com/josephw</url>
</contributor>
<contributor>
<name>Stephan Schroevers</name>
<url>https://github.com/Stephan202</url>
</contributor>
<contributor>
<name>Michal Kordas</name>
<url>https://github.com/mkordas</url>
</contributor>
<contributor>
<name>Kamil Szymański</name>
<url>https://github.com/kamilszymanski</url>
</contributor>
<contributor>
<name>Hynek Mlnařík</name>
<url>https://github.com/hmlnarik</url>
</contributor>
<contributor>
<name>Hugh Hamill</name>
<url>https://github.com/hughwphamill</url>
</contributor>
<contributor>
<name>Hans Joachim Desserud</name>
<url>https://github.com/hansjoachim</url>
</contributor>
<contributor>
<name>Gunnar Wagenknecht</name>
<url>https://github.com/guw</url>
</contributor>
<contributor>
<name>Dmytro Chyzhykov</name>
<url>https://github.com/ffbit</url>
</contributor>
<contributor>
<name>r-smirnov</name>
<url>https://github.com/r-smirnov</url>
</contributor>
<contributor>
<name>ianparkinson</name>
<url>https://github.com/ianparkinson</url>
</contributor>
<contributor>
<name>dmac100</name>
<url>https://github.com/dmac100</url>
</contributor>
<contributor>
<name>Vineet Kumar</name>
<url>https://github.com/vin</url>
</contributor>
<contributor>
<name>Urs Metz</name>
<url>https://github.com/UrsMetz</url>
</contributor>
<contributor>
<name>Tarnowski Jan</name>
<url>https://github.com/tarnowskijan</url>
</contributor>
<contributor>
<name>Roman Elizarov</name>
<url>https://github.com/elizarov</url>
</contributor>
<contributor>
<name>Roland Hauser</name>
<url>https://github.com/SourcePond</url>
</contributor>
<contributor>
<name>Michał Borek</name>
<url>https://github.com/michalborek</url>
</contributor>
<contributor>
<name>Michael Pinnegar</name>
<url>https://github.com/Jazzepi</url>
</contributor>
<contributor>
<name>Marius Volkhart</name>
<url>https://github.com/MariusVolkhart</url>
</contributor>
<contributor>
<name>Lucas Cavalcanti</name>
<url>https://github.com/lucascs</url>
</contributor>
<contributor>
<name>Leonardo Carrasco</name>
<url>https://github.com/thesnowgoose</url>
</contributor>
<contributor>
<name>Krzysztof Wolny</name>
<url>https://github.com/vanta</url>
</contributor>
<contributor>
<name>Jeffrey Falgout</name>
<url>https://github.com/JeffreyFalgout</url>
</contributor>
<contributor>
<name>Ismael Juma</name>
<url>https://github.com/ijuma</url>
</contributor>
<contributor>
<name>Emory Merryman</name>
<url>https://github.com/AFnRFCb7</url>
</contributor>
<contributor>
<name>Clark Brewer</name>
<url>https://github.com/brewerc</url>
</contributor>
<contributor>
<name>Carlos Aguayo</name>
<url>https://github.com/carlosaguayo</url>
</contributor>
<contributor>
<name>Arend v. Reinersdorff</name>
<url>https://github.com/arend-von-reinersdorff</url>
</contributor>
<contributor>
<name>Alberto Scotto</name>
<url>https://github.com/alb-i986</url>
</contributor>
<contributor>
<name>yyvess</name>
<url>https://github.com/yyvess</url>
</contributor>
<contributor>
<name>訾明华</name>
<url>https://github.com/ziminghua</url>
</contributor>
<contributor>
<name>wuwen</name>
<url>https://github.com/wuwen5</url>
</contributor>
<contributor>
<name>test111</name>
<url>https://github.com/tradingreason</url>
</contributor>
<contributor>
<name>Xin Liu</name>
<url>https://github.com/L-KID</url>
</contributor>
<contributor>
<name>Wojtek Wilk</name>
<url>https://github.com/wwilk</url>
</contributor>
<contributor>
<name>Walter Scott Johnson</name>
<url>https://github.com/li-wjohnson</url>
</contributor>
<contributor>
<name>Walter Johnson</name>
<url>https://github.com/li-wjohnson</url>
</contributor>
<contributor>
<name>Vladislav</name>
<url>https://github.com/VChirp</url>
</contributor>
<contributor>
<name>Vivian Pennel</name>
<url>https://github.com/Vp3n</url>
</contributor>
<contributor>
<name>Venkata Jaswanth</name>
<url>https://github.com/aj-jaswanth</url>
</contributor>
<contributor>
<name>Tom Ball</name>
<url>https://github.com/tomball</url>
</contributor>
<contributor>
<name>Tokuhiro Matsuno</name>
<url>https://github.com/tokuhirom</url>
</contributor>
<contributor>
<name>Tim Cooke</name>
<url>https://github.com/trcooke</url>
</contributor>
<contributor>
<name>Stuart Blair</name>
<url>https://github.com/stuartblair</url>
</contributor>
<contributor>
<name>Simen Bekkhus</name>
<url>https://github.com/SimenB</url>
</contributor>
<contributor>
<name>Scott Markwell</name>
<url>https://github.com/smarkwell</url>
</contributor>
<contributor>
<name>Sanne Grinovero</name>
<url>https://github.com/Sanne</url>
</contributor>
<contributor>
<name>Roi Atalla</name>
<url>https://github.com/ra4king</url>
</contributor>
<contributor>
<name>Robert Stupp</name>
<url>https://github.com/snazy</url>
</contributor>
<contributor>
<name>Radim Kubacki</name>
<url>https://github.com/radimk</url>
</contributor>
<contributor>
<name>Philipp Jardas</name>
<url>https://github.com/phjardas</url>
</contributor>
<contributor>
<name>Oliver Drotbohm</name>
<url>https://github.com/odrotbohm</url>
</contributor>
<contributor>
<name>Niklas Baudy</name>
<url>https://github.com/vanniktech</url>
</contributor>
<contributor>
<name>Myrle Krantz</name>
<url>https://github.com/myrle-krantz</url>
</contributor>
<contributor>
<name>Matt Dean</name>
<url>https://github.com/mattbdean</url>
</contributor>
<contributor>
<name>Markus Wüstenberg</name>
<url>https://github.com/markuswustenberg</url>
</contributor>
<contributor>
<name>Maciej Kuster</name>
<url>https://github.com/NagRock</url>
</contributor>
<contributor>
<name>MEDDAH Julien</name>
<url>https://github.com/MeddahJ</url>
</contributor>
<contributor>
<name>Ludovic Meurillon</name>
<url>https://github.com/LudoMeurillon</url>
</contributor>
<contributor>
<name>Ludovic Chane</name>
<url>https://github.com/ludochane</url>
</contributor>
<contributor>
<name>Krisztian Milesz</name>
<url>https://github.com/mileszk</url>
</contributor>
<contributor>
<name>Kengo TODA</name>
<url>https://github.com/KengoTODA</url>
</contributor>
<contributor>
<name>Kayvan Najafzadeh</name>
<url>https://github.com/kayvannj</url>
</contributor>
<contributor>
<name>José Paumard</name>
<url>https://github.com/JosePaumard</url>
</contributor>
<contributor>
<name>Jonathan Lloyd</name>
<url>https://github.com/lloydjm77</url>
</contributor>
<contributor>
<name>Johnny Lim</name>
<url>https://github.com/izeye</url>
</contributor>
<contributor>
<name>Jesse Englert</name>
<url>https://github.com/jpenglert</url>
</contributor>
<contributor>
<name>Jeremy Rickard</name>
<url>https://github.com/jrrickard</url>
</contributor>
<contributor>
<name>Ivan Vershinin</name>
<url>https://github.com/vershinin</url>
</contributor>
<contributor>
<name>Igor Kostenko</name>
<url>https://github.com/isanych</url>
</contributor>
<contributor>
<name>Igor Conrado Alves de Lima</name>
<url>https://github.com/igorcadelima</url>
</contributor>
<contributor>
<name>Gaëtan Muller</name>
<url>https://github.com/MGaetan89</url>
</contributor>
<contributor>
<name>Felix W. Dekker</name>
<url>https://github.com/FWDekker</url>
</contributor>
<contributor>
<name>Evgeny Astafyev</name>
<url>https://github.com/astafev</url>
</contributor>
<contributor>
<name>Eugene Ivakhno</name>
<url>https://github.com/eugene-ivakhno</url>
</contributor>
<contributor>
<name>Erik Bakker</name>
<url>https://github.com/eamelink</url>
</contributor>
<contributor>
<name>Dmitriy Zaitsev</name>
<url>https://github.com/DmitriyZaitsev</url>
</contributor>
<contributor>
<name>Divyansh Gupta</name>
<url>https://github.com/divyansh-gupta</url>
</contributor>
<contributor>
<name>Dennis Cheung</name>
<url>https://github.com/hkdennis2k</url>
</contributor>
<contributor>
<name>Denis Zharkov</name>
<url>https://github.com/dzharkov</url>
</contributor>
<contributor>
<name>David Xia</name>
<url>https://github.com/davidxia</url>
</contributor>
<contributor>
<name>David Gageot</name>
<url>https://github.com/dgageot</url>
</contributor>
<contributor>
<name>Christian Persson</name>
<url>https://github.com/Saser</url>
</contributor>
<contributor>
<name>Bruno Krebs</name>
<url>https://github.com/brunokrebs</url>
</contributor>
<contributor>
<name>Ben Yu</name>
<url>https://github.com/fluentfuture</url>
</contributor>
<contributor>
<name>Bastien Jansen</name>
<url>https://github.com/bjansen</url>
</contributor>
<contributor>
<name>Bartosz Miller</name>
<url>https://github.com/BartoszMiller</url>
</contributor>
<contributor>
<name>Ariel Isaac</name>
<url>https://github.com/Ariel-Isaacm</url>
</contributor>
<contributor>
<name>Anuraag Agrawal</name>
<url>https://github.com/anuraaga</url>
</contributor>
<contributor>
<name>André Gonçalves</name>
<url>https://github.com/andrerigon</url>
</contributor>
<contributor>
<name>Andrey</name>
<url>https://github.com/andreyrmg</url>
</contributor>
<contributor>
<name>Andrei Solntsev</name>
<url>https://github.com/asolntsev</url>
</contributor>
<contributor>
<name>Allan Wang</name>
<url>https://github.com/AllanWang</url>
</contributor>
<contributor>
<name>Alex Simkin</name>
<url>https://github.com/SimY4</url>
</contributor>
<contributor>
<name>rberghegger</name>
<url>https://github.com/rberghegger</url>
</contributor>
<contributor>
<name>philipa</name>
<url>https://github.com/philipa</url>
</contributor>
<contributor>
<name>paulduffin</name>
<url>https://github.com/paulduffin</url>
</contributor>
<contributor>
<name>mgrafl</name>
<url>https://github.com/mgrafl</url>
</contributor>
<contributor>
<name>jmetertea</name>
<url>https://github.com/jmetertea</url>
</contributor>
<contributor>
<name>geoffschoeman</name>
<url>https://github.com/geoffschoeman</url>
</contributor>
<contributor>
<name>bruceeddy</name>
<url>https://github.com/bruceeddy</url>
</contributor>
<contributor>
<name>ashleyfrieze</name>
<url>https://github.com/ashleyfrieze</url>
</contributor>
<contributor>
<name>Nirvanall</name>
<url>https://github.com/Nirvanall</url>
</contributor>
<contributor>
<name>LiamClark</name>
<url>https://github.com/LiamClark</url>
</contributor>
</contributors>
</project>

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.8.0</version>
<name>mockito-junit-jupiter</name>
<description>Mockito JUnit 5 support</description>
<url>https://github.com/mockito/mockito</url>
<licenses>
<license>
<name>MIT</name>
<url>https://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>mockitoguy</id>
<name>Szczepan Faber</name>
<url>https://github.com/mockitoguy</url>
<roles>
<role>Core developer</role>
</roles>
</developer>
<developer>
<id>bric3</id>
<name>Brice Dutheil</name>
<url>https://github.com/bric3</url>
<roles>
<role>Core developer</role>
</roles>
</developer>
<developer>
<id>raphw</id>
<name>Rafael Winterhalter</name>
<url>https://github.com/raphw</url>
<roles>
<role>Core developer</role>
</roles>
</developer>
<developer>
<id>TimvdLippe</id>
<name>Tim van der Lippe</name>
<url>https://github.com/TimvdLippe</url>
<roles>
<role>Core developer</role>
</roles>
</developer>
</developers>
<scm>
<url>https://github.com/mockito/mockito.git</url>
</scm>
<issueManagement>
<system>GitHub issues</system>
<url>https://github.com/mockito/mockito/issues</url>
</issueManagement>
<ciManagement>
<system>GH Actions</system>
<url>https://github.com/mockito/mockito/actions</url>
</ciManagement>
<dependencies>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.8.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.10.1</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>

@ -1,8 +1,8 @@
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 187f1ea..f8fa355 100644
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
@@ -30,8 +30,8 @@ import net.bytebuddy.dynamic.ClassFileLocator;
@@ -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;
@ -13,19 +13,38 @@ index 187f1ea..f8fa355 100644
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 f5b807a..c9ca662 100644
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
@@ -26,6 +26,7 @@ import org.mockito.plugins.MockMaker;
import org.mockito.stubbing.Answer;
@@ -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> {
@@ -154,7 +155,7 @@ public abstract class AbstractByteBuddyMockMakerTest<MM extends MockMaker> {
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()
@ -35,7 +54,7 @@ index f5b807a..c9ca662 100644
.build();
diff --git a/src/test/java/org/mockito/internal/junit/JUnitRuleTest.java b/src/test/java/org/mockito/internal/junit/JUnitRuleTest.java
index f971893..63af9cd 100644
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;
@ -55,7 +74,7 @@ index f971893..63af9cd 100644
// 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 9cd47da..356a3e0 100644
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;

@ -1,37 +1,41 @@
%bcond_with bootstrap
Name: mockito
Version: 3.7.13
Release: 5%{?dist}
Version: 5.8.0
Release: 6%{?dist}
Summary: Tasty mocking framework for unit tests in Java
License: MIT
URL: https://site.mockito.org/
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
# ./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: mockito-core.pom
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
Patch0: use-unbundled-asm.patch
BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.bytebuddy:byte-buddy)
BuildRequires: mvn(net.bytebuddy:byte-buddy-agent)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.assertj:assertj-core)
BuildRequires: mvn(org.hamcrest:hamcrest)
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)
BuildRequires: mvn(org.ow2.asm:asm)
%endif
%description
@ -46,39 +50,84 @@ Summary: Javadocs for %{name}
%description javadoc
This package contains the API documentation for %{name}.
%package junit-jupiter
Summary: Mockito JUnit 5 support
Requires: %{name} = %{version}-%{release}
%description junit-jupiter
Mockito JUnit 5 support.
%prep
%setup -q
%patch0 -p1
%autosetup -p1
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
# Use our custom build script
sed -e 's/@VERSION@/%{version}/' %{SOURCE2} > pom.xml
# OGGi metadata configuration
cat > osgi.bnd <<EOF
Automatic-Module-Name: org.mockito
Bundle-SymbolicName: org.mockito
Bundle-Name: Mockito Mock Library for Java.
Import-Package: junit.*;resolution:=optional,org.junit.*;resolution:=optional,org.hamcrest;resolution:=optional,org.mockito*;version="%{version}",*
Private-Package: org.mockito.*
-removeheaders: Bnd-LastModified,Include-Resource,Private-Package
EOF
# Workaround easymock incompatibility with Java 17 that should be fixed
# in easymock 4.4: https://github.com/easymock/easymock/issues/274
%pom_add_plugin :maven-surefire-plugin . "<configuration>
<argLine>--add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED</argLine></configuration>"
# Compatibility alias
%mvn_alias org.%{name}:%{name}-core org.%{name}:%{name}-all
sed -i 's/net\.bytebuddy\.jar\.asm/org.objectweb.asm/' src/main/java/org/mockito/internal/creation/bytebuddy/MockMethodAdvice.java
%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_xpath_inject 'pom:project/pom:build/pom:plugins' '
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>any</version>
<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>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>any</version>
<configuration>
<excludes>
<exclude>org/mockito/internal/creation/bytebuddy/inject/*.class</exclude>
</excludes>
</configuration>
</plugin>
'
%mvn_package :aggregator __noinstall
%build
# See the usage of exec-maven-plugin in the pom
mkdir -p target/classes/
javac -d target/classes/ src/main/java/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.java
mv target/classes/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.{class,raw}
%mvn_build -f -- -Dmaven.compiler.release=11 -Dproject.build.sourceEncoding=UTF-8 -f aggregator.pom
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
%mvn_package org.mockito:mockito-junit-jupiter junit-jupiter
%install
%mvn_install
@ -87,19 +136,68 @@ mv target/classes/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispa
%license LICENSE
%doc README.md doc/design-docs/custom-argument-matching.md
%files junit-jupiter -f .mfiles-junit-jupiter
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.7.13-5
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 5.8.0-6
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 5.8.0-5
- Rebuilt for MSVSphere 10
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 5.8.0-5
- Bump release for Aug 2024 java mass rebuild
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 5.8.0-4
- Bump release for June 2024 mass rebuild
* 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 Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.7.13-4
- Rebuild to workaround DistroBaker issue
* Wed Nov 03 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.7.13-4
- Workaround build issue with OpenJDK 17
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.7.13-3
- Bootstrap Maven for CentOS Stream 9
* 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

Loading…
Cancel
Save