add test success for gs 9.54 on RHEL 9.4

This commit is contained in:
Jörg Prante 2024-05-02 11:30:47 +02:00
parent 229951349b
commit afbe6eee2f
2 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,6 @@
package org.xbib.graphics.ghostscript.test; package org.xbib.graphics.ghostscript.test;
import java.util.Set;
import java.util.logging.Level; import java.util.logging.Level;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@ -67,9 +68,10 @@ public class GhostscriptLibraryTest {
} }
@Test @Test
//@Disabled
public void gsapiSetDisplayCallback() { public void gsapiSetDisplayCallback() {
String display = gslib.setDisplayCallback(); 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));
} }
} }

View file

@ -36,7 +36,7 @@ dependencyResolutionManagement {
} }
testLibs { testLibs {
version('groovy', '4.0.16') version('groovy', '4.0.16')
version('junit', '5.10.1') version('junit', '5.10.2')
version('junit4', '4.13.2') version('junit4', '4.13.2')
version('spock', '2.4-M1-groovy-4.0') version('spock', '2.4-M1-groovy-4.0')
library('junit-jupiter-api', 'org.junit.jupiter', 'junit-jupiter-api').versionRef('junit') library('junit-jupiter-api', 'org.junit.jupiter', 'junit-jupiter-api').versionRef('junit')