From af01e08095ee95706b76711b72b558428fa72c3e Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Aug 09 2020 20:26:02 +0000 Subject: drop useless powermock build dependency --- diff --git a/jackson-databind.spec b/jackson-databind.spec index 686b590..36c1f72 100644 --- a/jackson-databind.spec +++ b/jackson-databind.spec @@ -1,6 +1,6 @@ Name: jackson-databind Version: 2.11.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General data-binding package for Jackson (2.x) License: ASL 2.0 and LGPLv2+ @@ -13,9 +13,7 @@ BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core) >= %{version} BuildRequires: mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version} BuildRequires: mvn(com.google.code.maven-replacer-plugin:replacer) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) -BuildRequires: mvn(org.powermock:powermock-api-mockito2) -BuildRequires: mvn(org.powermock:powermock-core) -BuildRequires: mvn(org.powermock:powermock-module-junit4) +BuildRequires: mvn(org.mockito:mockito-core) BuildArch: noarch @@ -46,7 +44,11 @@ sed -i 's/\r//' LICENSE NOTICE rm src/test/java/com/fasterxml/jackson/databind/introspect/NoClassDefFoundWorkaroundTest.java %pom_xpath_remove pom:classpathDependencyExcludes -# org.powermock.reflect.exceptions.FieldNotFoundException: Field 'fTestClass' was not found in class org.junit.internal.runners.MethodValidator. +# TestTypeFactoryWithClassLoader fails to compile +# - it's the only test that uses powermock, so drop the powermock dependencies +# - mockito is only transitively pulled in by powermock, so add it back +%pom_remove_dep org.powermock: +%pom_add_dep org.mockito:mockito-core::test rm src/test/java/com/fasterxml/jackson/databind/type/TestTypeFactoryWithClassLoader.java # Off test that require connection with the web @@ -70,6 +72,9 @@ rm src/test/java/com/fasterxml/jackson/databind/ser/jdk/JDKTypeSerializationTest %license LICENSE NOTICE %changelog +* Sun Aug 09 2020 Fabio Valentini - 2.11.2-2 +- Drop useless powermock build dependency. + * Sat Aug 08 2020 Fabio Valentini - 2.11.2-1 - Update to version 2.11.2.