dev-java/xmlunit-assertj: add 2.14.0

Bug: https://bugs.gentoo.org/977979
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1229
Merges: https://codeberg.org/gentoo/gentoo/pulls/1229
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2026-10-26 08:28:51 +01:00
committed by Miroslav Šulc
parent 54efe07ebb
commit 5f9b69d64d
4 changed files with 134 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST xmlunit-2.14.0-src.tar.gz 735416 BLAKE2B 8715c7206dc989431e3a5e035057ce60b60d58b556533301647f62b711edbf27ffbaf648c18e1acc764e105d6810863787e514b83bb38196bdb332e0ad1f838f SHA512 c474a792c03c59bdb75109c2ccef657882321c25f8eec14c6b38c1f9c76c73aadd7d2ea628170744c5612b9d26112ebe090f990de67fab6d844031537226fd7e
DIST xmlunit-2.9.1-src.tar.gz 681721 BLAKE2B 8e8d40e79890d9bec2a3a72a9931cba1c832438e713eb290867a2d95d3ca5a8092327611998075cf1e0117b747563f178b52f3c6435fc0f57c08a94d7240d104 SHA512 147c3868098b526895059b12a1cb692d774f4734fac94069e72a8c61109f8a3bfd7846d7f2596bf7c10dfb1a379185f73a4a0066076fc64a8577b90da8623acf
@@ -0,0 +1,19 @@
--- a/src/test/java/org/xmlunit/assertj3/ValueAssertTest.java
+++ b/src/test/java/org/xmlunit/assertj3/ValueAssertTest.java
@@ -16,6 +16,7 @@ package org.xmlunit.assertj3;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.Test;
+import org.junit.Ignore;
import org.mockito.Mockito;
import org.w3c.dom.Element;
import org.xml.sax.InputSource;
@@ -278,7 +279,7 @@ public class ValueAssertTest {
assertThat(xml).valueByXPath("//a/b/@attr").isEqualTo("abc");
}
- @Test
+ @Test @Ignore
public void testIsEqualTo_withAttributeValueExpression_shouldFailed() {
thrown.expectAssertionErrorPattern(".*("
@@ -0,0 +1,64 @@
--- a/src/test/java/org/xmlunit/assertj3/XmlAssertValidationTest.java
+++ b/src/test/java/org/xmlunit/assertj3/XmlAssertValidationTest.java
@@ -16,6 +16,7 @@ package org.xmlunit.assertj3;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.Test;
+import org.junit.Ignore;
import org.xmlunit.TestResources;
import org.xmlunit.validation.Languages;
import org.xmlunit.assertj3.util.SetEnglishLocaleRule;
@@ -103,7 +104,7 @@ public class XmlAssertValidationTest {
.isValidAgainst(xsd);
}
- @Test
+ @Test @Ignore
public void testIsValidAgainst_withEmptySourcesArray_shouldPass() {
StreamSource xml = new StreamSource(new File(TestResources.TEST_RESOURCE_DIR + "BookXsdGenerated.xml"));
@@ -112,7 +113,7 @@ public class XmlAssertValidationTest {
assertThat(xml).isValidAgainst(new Object[0]);
}
- @Test
+ @Test @Ignore
public void testIsValidAgainst_withBrokenXmlAndEmptySourcesArray_shouldFail() {
thrown.expectAssertionError("1. line=9; column=8; type=ERROR;" +
@@ -136,7 +137,7 @@ public class XmlAssertValidationTest {
.isValidAgainst();
}
- @Test
+ @Test @Ignore
public void testIsValid_shouldPass() {
StreamSource xml = new StreamSource(new File(TestResources.TEST_RESOURCE_DIR + "BookXsdGenerated.xml"));
@@ -144,7 +145,7 @@ public class XmlAssertValidationTest {
assertThat(xml).isValid();
}
- @Test
+ @Test @Ignore
public void testIsValid_withBrokenXml_shouldPass() {
thrown.expectAssertionError("1. line=9; column=8; type=ERROR;" +
@@ -164,7 +165,7 @@ public class XmlAssertValidationTest {
assertThat(xml).isInvalid();
}
- @Test
+ @Test @Ignore
public void testIsInvalid_shouldFail() {
thrown.expectAssertionErrorPattern("^\\RExpecting:\\R <.*"
@@ -175,7 +176,7 @@ public class XmlAssertValidationTest {
assertThat(xml).isInvalid();
}
- @Test
+ @Test @Ignore
public void testIsInvalidUsesCustomFailMessage() {
thrown.expectAssertionError("Alarm alarm!");
@@ -0,0 +1,50 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
JAVA_PKG_IUSE="doc source test"
JAVA_TESTING_FRAMEWORKS="junit-4"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="XMLUnit with AssertJ fluent API"
HOMEPAGE="https://www.xmlunit.org/"
SRC_URI="https://github.com/xmlunit/xmlunit/releases/download/v${PV}/xmlunit-${PV}-src.tar.gz"
S="${WORKDIR}/xmlunit-${PV}-src/xmlunit-assertj3"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64"
DEPEND="
>=virtual/jdk-1.8:*
>=dev-java/assertj-core-3.27.7:0
>=dev-java/byte-buddy-1.18.4:0
~dev-java/xmlunit-core-${PV}:0
test? (
>=dev-java/asm-9.9.1:0
>=dev-java/hamcrest-3.0:0
>=dev-java/mockito-5.21.0:0
)
"
RDEPEND=">=virtual/jre-1.8:*"
DOCS=( ../{CONTRIBUTING,HELP_WANTED,README,RELEASE_NOTES}.md )
PATCHES=(
"${FILESDIR}"/xmlunit-assertj-2.13.0-ValueAssertTest.patch
"${FILESDIR}"/xmlunit-assertj-2.13.0-XmlAsserValidationTest.patch # Some of them need network access
)
JAVA_AUTOMATIC_MODULE_NAME="org.xmlunit.assertj"
JAVA_CLASSPATH_EXTRA="assertj-core byte-buddy xmlunit-core"
JAVA_SRC_DIR="src/main/java"
JAVA_TEST_EXCLUDES="org.xmlunit.TestResources" # Invalid test class
JAVA_TEST_GENTOO_CLASSPATH="asm junit-4 mockito xmlunit-core"
JAVA_TEST_SRC_DIR="src/test/java"
src_prepare() {
java-pkg-2_src_prepare
cp {../xmlunit-core/,}src/test/java/org/xmlunit/TestResources.java || die
}