## START: Set by rpmautospec ## (rpmautospec version 0.5.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: JUnitParams Version: 1.1.1 Release: %autorelease Summary: Parameterized Java tests License: Apache-2.0 URL: https://pragmatists.github.io/JUnitParams/ Source0: https://github.com/Pragmatists/JUnitParams/archive/%{name}-%{version}.tar.gz ## Post-release bug fixes # Release notes and Readme updated Patch0: https://github.com/Pragmatists/JUnitParams/commit/c060976.patch # Add language identifiers to README.md for syntax highlighting Patch1: https://github.com/Pragmatists/JUnitParams/commit/280ee05.patch # Show original exception thrown from test class constructor Patch2: https://github.com/Pragmatists/JUnitParams/commit/6bab69a.patch # Better exception for missing parameters Patch3: https://github.com/Pragmatists/JUnitParams/commit/f0772e7.patch # Better exception message for missing parameters Patch4: https://github.com/Pragmatists/JUnitParams/commit/90d47a5.patch ## Patches to fix testing with junit 4.13. See: ## - https://github.com/Pragmatists/JUnitParams/issues/172 ## - https://github.com/Pragmatists/JUnitParams/pull/182 # Fix parsing of strings into BigDecimal values Patch5: %{name}-parse-bigdecimal.patch # Fix single method test filters Patch6: %{name}-single-method-filter.patch # Use hasMessageContaining instead of hasMessage Patch7: %{name}-has-message-containing.patch BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-jar-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-surefire-plugin) BuildRequires: mvn(org.assertj:assertj-core) BuildArch: noarch ExclusiveArch: %{java_arches} noarch %description The JUnitParams project adds a new runner to JUnit and provides much easier and more readable parameterized tests for JUnit >= 4.12. The main differences with the standard JUnit Parameterized runner are: - more explicit - params are in test method params, not class fields - less code - you don't need a constructor to set up parameters - you can mix parameterized with non-parameterized methods in one class - params can be passed as a CSV string or from a parameters provider class - parameters provider class can have as many parameters providing methods as you want, so that you can group different cases - you can have a test method that provides parameters (no external classes or statics anymore) - you can see actual parameter values in your IDE (in JUnit's Parameterized, it's only consecutive numbers of parameters) %prep %autosetup -n %{name}-%{name}-%{version} -p1 # sonatype-oss-parent is deprecated in Fedora %pom_remove_parent # Unnecessary plugins for an RPM build %pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin %pom_remove_plugin org.apache.maven.plugins:maven-release-plugin %pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin %pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin # Build for Java 1.8 at a minimum %pom_xpath_set '//pom:source' 1.8 %pom_xpath_set '//pom:target' 1.8 %build %mvn_build -j %install %mvn_install %files -f .mfiles %doc README.md RELEASES.md %license LICENSE.txt %changelog ## START: Generated by rpmautospec * Mon Jan 22 2024 Fedora Release Engineering - 1.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 18 2024 Fedora Release Engineering - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Dec 04 2023 Jerry James - 1.1.1-1 - Initial RPM ## END: Generated by rpmautospec