summaryrefslogtreecommitdiff
path: root/dev-java/junitparams
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-05-11 19:55:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-05-11 19:55:43 +0100
commit185fa19bbf68a4d4dca534d2b46729207a177f16 (patch)
treea8a537b82fda83a0799c2ca9887f212558363aa7 /dev-java/junitparams
parentc8fd0d84af0bfd1949542adc2cbb735b1d28f9ed (diff)
gentoo resync : 11.05.2021
Diffstat (limited to 'dev-java/junitparams')
-rw-r--r--dev-java/junitparams/Manifest4
-rw-r--r--dev-java/junitparams/files/junitparams-1.1.1-test.patch45
-rw-r--r--dev-java/junitparams/junitparams-1.1.1.ebuild67
-rw-r--r--dev-java/junitparams/metadata.xml12
4 files changed, 128 insertions, 0 deletions
diff --git a/dev-java/junitparams/Manifest b/dev-java/junitparams/Manifest
new file mode 100644
index 000000000000..cdb39ab768a0
--- /dev/null
+++ b/dev-java/junitparams/Manifest
@@ -0,0 +1,4 @@
+AUX junitparams-1.1.1-test.patch 1894 BLAKE2B 8c2aacc726a9d5ac733971f20aa06ab21e1ac31cfa14cf23e11b0541777f22291417710f944fd3f6554791ea8deae022e42ea0af5177f6d97a542d55f510b8d4 SHA512 cae119b7c22b65e42a252d70bc92ad05cae568b2257d9640a498bc7cb15e3917f32c9fafd6b06ded8f739b4825c1662a8c4625114aab1252f4adf58cf52f1f34
+DIST junitparams-1.1.1.tar.gz 96180 BLAKE2B 0b12d61841d13c893d90f1a28e6b881930a66a9359b368b601a9ee9ced1fa82ff17c9142610e1ed122684e454b86a46d9d2cf451544a900b0a86399484df141c SHA512 77e25bff2f821e8be4f3747c58e550b728aace1dac4ac98f0cd8f99235d6a2b0129e61d7f90063d5f85dd3dd4b0e5d0614e3591633bdcf5dfa452c62a114acae
+EBUILD junitparams-1.1.1.ebuild 1640 BLAKE2B 8aa9fd7add5c23199e9ad8ecb18a2a379428c5bab592731ccc538df9814e12b956aea7b83c47598f223efc56101a3911a77c8843fbe7cb7366b1d8ed1649cb84 SHA512 b666ca63f3644afba27612eda3788e1388b3fdb48271871135925c10733add9c467bcaa09d55879737c9e9b9338b786be7287c288e3203ad0793b3af69b9d198
+MISC metadata.xml 441 BLAKE2B bb19fcc1426ce3b532fba9d7bc04c796ff08a132f84860fa5bc51b0b6f6371ab1ed670e1e680b641fd858dcbb934bf83a800ee8e8ca4385d9b900d0f2dd255c3 SHA512 fd015a318961bdb03541ea34ccbd91183ce19abd7d73bb78970ced8e95325ba2525dbaa35f898475347dc59b87b005d57ff9b090d298d270624a46557573b1ba
diff --git a/dev-java/junitparams/files/junitparams-1.1.1-test.patch b/dev-java/junitparams/files/junitparams-1.1.1-test.patch
new file mode 100644
index 000000000000..02c9af4a0ab7
--- /dev/null
+++ b/dev-java/junitparams/files/junitparams-1.1.1-test.patch
@@ -0,0 +1,45 @@
+--- a/src/test/java/junitparams/BeforeAfterClassTest.java
++++ b/src/test/java/junitparams/BeforeAfterClassTest.java
+@@ -41,7 +41,7 @@ public class BeforeAfterClassTest {
+
+ assertThat(result.getFailureCount()).isEqualTo(1);
+ assertThat(result.getFailures().get(0).getException())
+- .hasMessage("Method fail() should be static");
++ .hasMessage("Invalid test class 'junitparams.BeforeAfterClassTest$NonStaticBeforeTest':\n 1. Method fail() should be static");
+ }
+
+
+--- a/src/test/java/junitparams/RulesTest.java
++++ b/src/test/java/junitparams/RulesTest.java
+@@ -45,7 +45,7 @@ public class RulesTest {
+
+ assertThat(result.getFailureCount()).isEqualTo(1);
+ assertThat(result.getFailures().get(0).getException())
+- .hasMessage("The @Rule 'testRule' must be public.");
++ .hasMessage("Invalid test class 'junitparams.RulesTest$ProtectedRuleTest':\n 1. The @Rule 'testRule' must be public.");
+ }
+
+ public class ProtectedRuleTest {
+
+--- a/src/test/java/junitparams/FilterableTest.java
++++ b/src/test/java/junitparams/FilterableTest.java
+@@ -44,8 +44,8 @@ public class FilterableTest {
+
+ Description description = request.getRunner().getDescription();
+
+- assertThat(description.getChildren()).hasSize(1);
+- assertThat(description.getChildren().get(0).getChildren()).hasSize(0);
++ assertThat(description.getChildren()).hasSize(2);
++ assertThat(description.getChildren().get(0).getChildren()).hasSize(2);
+ }
+
+ @Test
+@@ -54,7 +54,7 @@ public class FilterableTest {
+
+ Description description = request.getRunner().getDescription();
+
+- assertThat(description.getChildren()).hasSize(1);
++ assertThat(description.getChildren()).hasSize(2);
+ assertThat(description.getChildren().get(0).getChildren()).hasSize(2);
+ }
+
diff --git a/dev-java/junitparams/junitparams-1.1.1.ebuild b/dev-java/junitparams/junitparams-1.1.1.ebuild
new file mode 100644
index 000000000000..8177e81b47d4
--- /dev/null
+++ b/dev-java/junitparams/junitparams-1.1.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Skeleton command:
+# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/Pragmatists/JUnitParams/archive/refs/tags/JUnitParams-1.1.1.tar.gz --slot 0 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild junitparams-1.1.1.ebuild
+
+EAPI=7
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="pl.pragmatists:JUnitParams:1.1.1"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Better parameterised tests for JUnit"
+HOMEPAGE="https://github.com/Pragmatists/JUnitParams"
+SRC_URI="https://github.com/Pragmatists/JUnitParams/archive/refs/tags/JUnitParams-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Common dependencies
+# POM: pom.xml
+# junit:junit:4.12 -> >=dev-java/junit-4.12:4
+
+CDEPEND="
+ >=dev-java/junit-4.12:4
+"
+
+# Compile dependencies
+# POM: pom.xml
+# test? org.assertj:assertj-core:1.7.1 -> >=dev-java/assertj-core-2.3.0:2
+
+DEPEND="
+ >=virtual/jdk-1.8:*
+ ${CDEPEND}
+ test? (
+ >=dev-java/assertj-core-2.3.0:2
+ )
+"
+
+RDEPEND="
+ >=virtual/jre-1.8:*
+ ${CDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/junitparams-1.1.1-test.patch
+)
+
+S="${WORKDIR}/JUnitParams-JUnitParams-${PV}"
+
+JAVA_GENTOO_CLASSPATH="junit-4"
+JAVA_SRC_DIR="src/main/java"
+
+JAVA_TEST_GENTOO_CLASSPATH="assertj-core-2"
+JAVA_TEST_SRC_DIR="src/test/java"
+JAVA_TEST_RESOURCE_DIRS="src/test/resources"
+
+JAVA_TEST_EXCLUDES=(
+ # java.lang.RuntimeException: Could not find method: paramsForSuperclassMethod so no params were used.
+ "junitparams.SuperclassTest"
+)
+
+src_prepare() {
+ default
+}
diff --git a/dev-java/junitparams/metadata.xml b/dev-java/junitparams/metadata.xml
new file mode 100644
index 000000000000..d5b551e571ab
--- /dev/null
+++ b/dev-java/junitparams/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Pragmatists/JUnitParams/tags</remote-id>
+ <doc>https://github.com/Pragmatists/JUnitParams/wiki</doc>
+ <bugs-to>https://github.com/Pragmatists/JUnitParams/issues</bugs-to>
+ </upstream>
+</pkgmetadata>