Update to version 2.28.2.

This commit is contained in:
Jerry James 2020-08-14 22:03:51 -06:00
parent 66842247ea
commit 3ae05b70a2
5 changed files with 30 additions and 22 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash -ex #!/bin/bash -ex
VERSION=2.23.9 VERSION=2.28.2
SRCDIR=mockito-${VERSION} SRCDIR=mockito-${VERSION}
git clone https://github.com/mockito/mockito.git ${SRCDIR} git clone https://github.com/mockito/mockito.git ${SRCDIR}

View File

@ -35,6 +35,12 @@
<version>2.6</version> <version>2.6</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>org.opentest4j</groupId>
<artifactId>opentest4j</artifactId>
<version>1.1.1</version>
<scope>compile</scope>
</dependency>
<dependency> <dependency>
<groupId>org.hamcrest</groupId> <groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId> <artifactId>hamcrest-core</artifactId>
@ -90,8 +96,8 @@
<configuration> <configuration>
<executable>cp</executable> <executable>cp</executable>
<arguments> <arguments>
<argument>${project.build.outputDirectory}/org/mockito/internal/creation/bytebuddy/MockMethodDispatcher.class</argument> <argument>${project.build.outputDirectory}/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.class</argument>
<argument>${project.build.outputDirectory}/org/mockito/internal/creation/bytebuddy/MockMethodDispatcher.raw</argument> <argument>${project.build.outputDirectory}/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.raw</argument>
</arguments> </arguments>
</configuration> </configuration>
</plugin> </plugin>

View File

@ -1,6 +1,6 @@
Name: mockito Name: mockito
Version: 2.23.9 Version: 2.28.2
Release: 8%{?dist} Release: 1%{?dist}
Summary: Tasty mocking framework for unit tests in Java Summary: Tasty mocking framework for unit tests in Java
License: MIT License: MIT
URL: https://site.mockito.org/ URL: https://site.mockito.org/
@ -26,6 +26,7 @@ BuildRequires: mvn(org.assertj:assertj-core)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin) BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.hamcrest:hamcrest-core) BuildRequires: mvn(org.hamcrest:hamcrest-core)
BuildRequires: mvn(org.objenesis:objenesis) BuildRequires: mvn(org.objenesis:objenesis)
BuildRequires: mvn(org.opentest4j:opentest4j)
BuildRequires: mvn(org.ow2.asm:asm) BuildRequires: mvn(org.ow2.asm:asm)
%description %description
@ -74,6 +75,9 @@ EOF
%license LICENSE %license LICENSE
%changelog %changelog
* 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 * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.23.9-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (mockito-2.23.9.tar.xz) = 2c6a8315cf043ec1c3fd38e4fa0609753dc7d898509eda88d2a20b2682ce4684c5ad7eab3c39effa7dfb3358a54b90ade5bc2a7547ea5c418449384a8eebe0f7 SHA512 (mockito-2.28.2.tar.xz) = faed4efd2e02a23f09bab57e56ad35d0302e4334302713d7e807acf3f467f79674428c6a27289cc8f64fd0197a1bef6c9b69926b9baa262306099f4c29c5263b

View File

@ -1,21 +1,19 @@
--- src/main/java/org/mockito/internal/creation/bytebuddy/InlineBytecodeGenerator.java.orig 2018-12-04 23:47:19.396895633 +0000 --- src/main/java/org/mockito/internal/creation/bytebuddy/InlineBytecodeGenerator.java.orig 2020-08-14 16:48:03.903053256 -0600
+++ src/main/java/org/mockito/internal/creation/bytebuddy/InlineBytecodeGenerator.java 2018-12-04 23:48:19.129703720 +0000 +++ src/main/java/org/mockito/internal/creation/bytebuddy/InlineBytecodeGenerator.java 2020-08-14 16:48:54.171048446 -0600
@@ -18,9 +18,9 @@ @@ -18,8 +18,8 @@ import net.bytebuddy.dynamic.ClassFileLo
import net.bytebuddy.dynamic.scaffold.MethodGraph; import net.bytebuddy.dynamic.scaffold.MethodGraph;
import net.bytebuddy.dynamic.scaffold.TypeValidation; import net.bytebuddy.dynamic.scaffold.TypeValidation;
import net.bytebuddy.implementation.Implementation; import net.bytebuddy.implementation.Implementation;
-import net.bytebuddy.jar.asm.ClassVisitor; -import net.bytebuddy.jar.asm.ClassVisitor;
-import net.bytebuddy.jar.asm.MethodVisitor; -import net.bytebuddy.jar.asm.MethodVisitor;
-import net.bytebuddy.jar.asm.Opcodes;
+import org.objectweb.asm.ClassVisitor; +import org.objectweb.asm.ClassVisitor;
+import org.objectweb.asm.MethodVisitor; +import org.objectweb.asm.MethodVisitor;
+import org.objectweb.asm.Opcodes;
import net.bytebuddy.matcher.ElementMatchers; import net.bytebuddy.matcher.ElementMatchers;
import net.bytebuddy.pool.TypePool; import net.bytebuddy.pool.TypePool;
import net.bytebuddy.utility.OpenedClassReader; import net.bytebuddy.utility.OpenedClassReader;
--- ./src/test/java/org/mockitointegration/NoJUnitDependenciesTest.java.orig 2018-12-04 23:49:03.170562228 +0000 --- src/test/java/org/mockitointegration/NoJUnitDependenciesTest.java.orig 2019-05-29 11:38:39.000000000 -0600
+++ ./src/test/java/org/mockitointegration/NoJUnitDependenciesTest.java 2018-12-04 23:49:46.061424433 +0000 +++ src/test/java/org/mockitointegration/NoJUnitDependenciesTest.java 2020-08-14 16:48:03.904053256 -0600
@@ -12,6 +12,7 @@ @@ -12,6 +12,7 @@ import org.junit.Test;
import org.mockito.Mockito; import org.mockito.Mockito;
import org.mockito.internal.configuration.plugins.Plugins; import org.mockito.internal.configuration.plugins.Plugins;
import org.mockitoutil.ClassLoaders; import org.mockitoutil.ClassLoaders;
@ -23,7 +21,7 @@
import org.objenesis.Objenesis; import org.objenesis.Objenesis;
import java.util.Set; import java.util.Set;
@@ -30,6 +31,7 @@ @@ -30,6 +31,7 @@ public class NoJUnitDependenciesTest {
Matcher.class, Matcher.class,
ByteBuddy.class, ByteBuddy.class,
ByteBuddyAgent.class, ByteBuddyAgent.class,
@ -31,9 +29,9 @@
Objenesis.class Objenesis.class
) )
.withCodeSourceUrlOf(coverageTool()) .withCodeSourceUrlOf(coverageTool())
--- src/test/java/org/mockito/internal/creation/bytebuddy/AbstractByteBuddyMockMakerTest.java.orig 2018-12-05 00:18:50.707528013 +0000 --- src/test/java/org/mockito/internal/creation/bytebuddy/AbstractByteBuddyMockMakerTest.java.orig 2019-05-29 11:38:39.000000000 -0600
+++ src/test/java/org/mockito/internal/creation/bytebuddy/AbstractByteBuddyMockMakerTest.java 2018-12-05 00:19:49.520329138 +0000 +++ src/test/java/org/mockito/internal/creation/bytebuddy/AbstractByteBuddyMockMakerTest.java 2020-08-14 16:48:03.904053256 -0600
@@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@ import org.mockito.plugins.MockMaker;
import org.mockito.stubbing.Answer; import org.mockito.stubbing.Answer;
import org.mockitoutil.ClassLoaders; import org.mockitoutil.ClassLoaders;
import org.mockitoutil.SimpleSerializationUtil; import org.mockitoutil.SimpleSerializationUtil;
@ -41,7 +39,7 @@
import org.objenesis.ObjenesisStd; import org.objenesis.ObjenesisStd;
import java.io.Serializable; import java.io.Serializable;
@@ -138,7 +139,7 @@ @@ -138,7 +139,7 @@ public abstract class AbstractByteBuddyM
public void instantiate_fine_when_objenesis_on_the_classpath() throws Exception { public void instantiate_fine_when_objenesis_on_the_classpath() throws Exception {
// given // given
ClassLoader classpath_with_objenesis = ClassLoaders.excludingClassLoader() ClassLoader classpath_with_objenesis = ClassLoaders.excludingClassLoader()
@ -50,8 +48,8 @@
.withCodeSourceUrlOf(coverageTool()) .withCodeSourceUrlOf(coverageTool())
.build(); .build();
--- src/test/java/org/mockito/internal/junit/JUnitRuleTest.java.orig 2018-12-05 00:26:24.279002285 +0000 --- src/test/java/org/mockito/internal/junit/JUnitRuleTest.java.orig 2019-05-29 11:38:39.000000000 -0600
+++ src/test/java/org/mockito/internal/junit/JUnitRuleTest.java 2018-12-05 00:27:47.327723119 +0000 +++ src/test/java/org/mockito/internal/junit/JUnitRuleTest.java 2020-08-14 16:48:03.905053256 -0600
@@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
*/ */
package org.mockito.internal.junit; package org.mockito.internal.junit;
@ -60,7 +58,7 @@
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.mockito.Mock; import org.mockito.Mock;
@@ -41,6 +42,7 @@ @@ -41,6 +42,7 @@ public class JUnitRuleTest {
@SuppressWarnings({"CheckReturnValue", "MockitoUsage"}) @SuppressWarnings({"CheckReturnValue", "MockitoUsage"})
@Test @Test