From afbe6eee2fa98476b706cc449c1e5d7cbbb103bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Prante?= Date: Thu, 2 May 2024 11:30:47 +0200 Subject: [PATCH] add test success for gs 9.54 on RHEL 9.4 --- .../graphics/ghostscript/test/GhostscriptLibraryTest.java | 6 ++++-- settings.gradle | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/graphics-ghostscript/src/test/java/org/xbib/graphics/ghostscript/test/GhostscriptLibraryTest.java b/graphics-ghostscript/src/test/java/org/xbib/graphics/ghostscript/test/GhostscriptLibraryTest.java index a45ab1f..ec11ed0 100644 --- a/graphics-ghostscript/src/test/java/org/xbib/graphics/ghostscript/test/GhostscriptLibraryTest.java +++ b/graphics-ghostscript/src/test/java/org/xbib/graphics/ghostscript/test/GhostscriptLibraryTest.java @@ -1,5 +1,6 @@ package org.xbib.graphics.ghostscript.test; +import java.util.Set; import java.util.logging.Level; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; @@ -67,9 +68,10 @@ public class GhostscriptLibraryTest { } @Test - //@Disabled public void gsapiSetDisplayCallback() { String display = gslib.setDisplayCallback(); - assertEquals("OPEN-PRESIZE-UPDATE-SIZE-UPDATE-PRECLOSE-CLOSEOPEN-PRESIZE-UPDATE-SIZE-PAGE-UPDATE-PRECLOSE-CLOSE", display); + assertTrue(Set.of("OPEN-PRESIZE-UPDATE-SIZE-PRECLOSE-CLOSEOPEN-PRESIZE-UPDATE-SIZE-UPDATE-PAGE-PRECLOSE-CLOSE", // gs 9.54 + "OPEN-PRESIZE-UPDATE-SIZE-UPDATE-PRECLOSE-CLOSEOPEN-PRESIZE-UPDATE-SIZE-PAGE-UPDATE-PRECLOSE-CLOSE") // gs 10 + .contains(display)); } } diff --git a/settings.gradle b/settings.gradle index ab02d45..bc52af1 100644 --- a/settings.gradle +++ b/settings.gradle @@ -36,7 +36,7 @@ dependencyResolutionManagement { } testLibs { version('groovy', '4.0.16') - version('junit', '5.10.1') + version('junit', '5.10.2') version('junit4', '4.13.2') version('spock', '2.4-M1-groovy-4.0') library('junit-jupiter-api', 'org.junit.jupiter', 'junit-jupiter-api').versionRef('junit')