public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/maven-doxia] epel10: Disable bad tests which rely on ordering in set
@ 2026-10-19 14:55 Michal Srb
0 siblings, 0 replies; only message in thread
From: Michal Srb @ 2026-10-19 14:55 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/maven-doxia
Branch : epel10
Commit : 2ab4c3e9e1e1689332295fb7ae95dd2ae4290177
Author : Michal Srb <msrb@redhat.com>
Date : 2014-03-26T10:28:59+01:00
Stats : +201/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/maven-doxia/c/2ab4c3e9e1e1689332295fb7ae95dd2ae4290177?branch=epel10
Log:
Disable bad tests which rely on ordering in set
---
diff --git a/0001-Disable-tests-which-rely-on-ordering-in-set.patch b/0001-Disable-tests-which-rely-on-ordering-in-set.patch
new file mode 100644
index 0000000..3ca44de
--- /dev/null
+++ b/0001-Disable-tests-which-rely-on-ordering-in-set.patch
@@ -0,0 +1,193 @@
+From c7e883d08372769594f1ca86fba5a854a37287f8 Mon Sep 17 00:00:00 2001
+From: Michal Srb <msrb@redhat.com>
+Date: Wed, 26 Mar 2014 09:58:20 +0100
+Subject: [PATCH] Disable tests which rely on ordering in set
+
+These tests fail with Java 8
+---
+ .../apache/maven/doxia/sink/AbstractSinkTest.java | 120 ++++++++++-----------
+ .../maven/doxia/module/fo/FoAggregateSinkTest.java | 30 +++---
+ 2 files changed, 75 insertions(+), 75 deletions(-)
+
+diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
+index ebba69c..72c9276 100644
+--- a/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
++++ b/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
+@@ -405,41 +405,41 @@ public abstract class AbstractSinkTest
+ * invoked on the current sink, produces the same result as
+ * {@link #getFigureBlock getFigureBlock}( source, caption ).
+ */
+- public void testFigure()
+- {
+- String source = "figure.jpg";
+- String caption = "Figure_caption";
+- sink.figure();
+- sink.figureGraphics( source );
+- sink.figureCaption();
+- sink.text( caption );
+- sink.figureCaption_();
+- sink.figure_();
+- sink.flush();
+- sink.close();
+-
+- String actual = testWriter.toString();
+- String expected = getFigureBlock( source, caption );
+-
+- assertEquals( "Wrong figure!", expected, actual );
+- }
+-
+-
+- public void testFigureWithoutCaption()
+- {
+- String source = "figure.jpg";
+- sink.figure();
+- sink.figureGraphics( source );
+- sink.figure_();
+- sink.flush();
+- sink.close();
+-
+- String actual = testWriter.toString();
+- String expected = getFigureBlock( source, null );
+-
+- assertEquals( "Wrong figure!", expected, actual );
+-
+- }
++ //public void testFigure()
++ //{
++ // String source = "figure.jpg";
++ // String caption = "Figure_caption";
++ // sink.figure();
++ // sink.figureGraphics( source );
++ // sink.figureCaption();
++ // sink.text( caption );
++ // sink.figureCaption_();
++ // sink.figure_();
++ // sink.flush();
++ // sink.close();
++
++ // String actual = testWriter.toString();
++ // String expected = getFigureBlock( source, caption );
++
++ // assertEquals( "Wrong figure!", expected, actual );
++ //}
++
++
++ //public void testFigureWithoutCaption()
++ //{
++ // String source = "figure.jpg";
++ // sink.figure();
++ // sink.figureGraphics( source );
++ // sink.figure_();
++ // sink.flush();
++ // sink.close();
++
++ // String actual = testWriter.toString();
++ // String expected = getFigureBlock( source, null );
++
++ // assertEquals( "Wrong figure!", expected, actual );
++ //
++ //}
+
+ /**
+ * Checks that the sequence <code>[table(),
+@@ -449,31 +449,31 @@ public abstract class AbstractSinkTest
+ * invoked on the current sink, produces the same result as
+ * {@link #getTableBlock getTableBlock}( cell, caption ).
+ */
+- public void testTable()
+- {
+- String cell = "cell";
+- String caption = "Table_caption";
+- int[] justify = { Sink.JUSTIFY_CENTER };
+- sink.table();
+- sink.tableRows( justify, false );
+- sink.tableRow();
+- sink.tableCell();
+- sink.text( cell );
+- sink.tableCell_();
+- sink.tableRow_();
+- sink.tableRows_();
+- sink.tableCaption();
+- sink.text( caption );
+- sink.tableCaption_();
+- sink.table_();
+- sink.flush();
+- sink.close();
+-
+- String actual = testWriter.toString();
+- String expected = getTableBlock( cell, caption );
+-
+- assertEquals( "Wrong table!", expected, actual );
+- }
++ //public void testTable()
++ //{
++ // String cell = "cell";
++ // String caption = "Table_caption";
++ // int[] justify = { Sink.JUSTIFY_CENTER };
++ // sink.table();
++ // sink.tableRows( justify, false );
++ // sink.tableRow();
++ // sink.tableCell();
++ // sink.text( cell );
++ // sink.tableCell_();
++ // sink.tableRow_();
++ // sink.tableRows_();
++ // sink.tableCaption();
++ // sink.text( caption );
++ // sink.tableCaption_();
++ // sink.table_();
++ // sink.flush();
++ // sink.close();
++
++ // String actual = testWriter.toString();
++ // String expected = getTableBlock( cell, caption );
++
++ // assertEquals( "Wrong table!", expected, actual );
++ //}
+
+ /**
+ * Checks that the sequence <code>[paragraph(), text( text ),
+diff --git a/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java b/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java
+index 4f67fb0..4548c33 100644
+--- a/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java
++++ b/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java
+@@ -155,21 +155,21 @@ public class FoAggregateSinkTest
+ /**
+ * Test of figureGraphics method, of class FoAggregateSink.
+ */
+- public void testFigureGraphics()
+- {
+- try
+- {
+- sink = new FoAggregateSink( writer );
+- sink.setDocumentName( "./folder\\docName.xml" );
+- sink.figureGraphics( "./../images/fig.png", null );
+- }
+- finally
+- {
+- sink.close();
+- }
+-
+- assertTrue( writer.toString().indexOf( "<fo:external-graphic src=\"./images/fig.png\"" ) != -1 );
+- }
++ //public void testFigureGraphics()
++ //{
++ // try
++ // {
++ // sink = new FoAggregateSink( writer );
++ // sink.setDocumentName( "./folder\\docName.xml" );
++ // sink.figureGraphics( "./../images/fig.png", null );
++ // }
++ // finally
++ // {
++ // sink.close();
++ // }
++
++ // assertTrue( writer.toString().indexOf( "<fo:external-graphic src=\"./images/fig.png\"" ) != -1 );
++ //}
+
+ /**
+ * Test of anchor method, of class FoAggregateSink.
+--
+1.9.0
+
diff --git a/maven-doxia.spec b/maven-doxia.spec
index d3eaefe..987239b 100644
--- a/maven-doxia.spec
+++ b/maven-doxia.spec
@@ -35,7 +35,7 @@
Name: maven-doxia
Version: 1.5
-Release: 3%{?dist}
+Release: 4%{?dist}
Epoch: 0
Summary: Content generation framework
License: ASL 2.0
@@ -67,6 +67,9 @@ Patch3: 0001-Update-to-Plexus-Container-1.5.5.patch
# Forwarded upstream: DOXIA-505
Patch4: 0001-Update-to-Commons-Collections-1.10.patch
+# Don't run bad tests which rely on ordering in set (they fail with Java 8)
+Patch5: 0001-Disable-tests-which-rely-on-ordering-in-set.patch
+
BuildArch: noarch
BuildRequires: java >= 1:1.6.0
@@ -257,6 +260,7 @@ API documentation for %{name}.
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
mkdir doxia-core/src/main/java/org/apache/maven/doxia/sink/render
cp -p %SOURCE1 doxia-core/src/main/java/org/apache/maven/doxia/sink/render/
@@ -317,6 +321,9 @@ cp -p %SOURCE1 doxia-core/src/main/java/org/apache/maven/doxia/sink/render/
%changelog
+* Wed Mar 26 2014 Michal Srb <msrb@redhat.com> - 0:1.5-4
+- Disable bad tests which rely on ordering in set
+
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.5-3
- Use Requires: java-headless rebuild (#1067528)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-19 14:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19 14:55 [rpms/maven-doxia] epel10: Disable bad tests which rely on ordering in set Michal Srb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox