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')