diff --git a/en-presentation/pom.xml b/en-presentation/pom.xml index 3c73c87..2854df7 100644 --- a/en-presentation/pom.xml +++ b/en-presentation/pom.xml @@ -1,5 +1,4 @@ - 4.0.0 en-presentation @@ -14,7 +13,7 @@ Library for the programmatic construction of presentations. Based on Apache POI, this library does not require that you understand office document formats, and provides a simplified abstraction. - 4.1.1 + 5.4.0 diff --git a/en-presentation/src/test/java/com/g2forge/enigma/presentation/TestPresentationBuilder.java b/en-presentation/src/test/java/com/g2forge/enigma/presentation/TestPresentationBuilder.java index c03f736..51ffd26 100644 --- a/en-presentation/src/test/java/com/g2forge/enigma/presentation/TestPresentationBuilder.java +++ b/en-presentation/src/test/java/com/g2forge/enigma/presentation/TestPresentationBuilder.java @@ -1,7 +1,9 @@ package com.g2forge.enigma.presentation; import java.io.IOException; +import java.nio.file.Files; import java.nio.file.Path; +import java.nio.file.Paths; import org.junit.Assert; import org.junit.Test; @@ -24,6 +26,8 @@ import com.g2forge.enigma.presentation.slide.SlideTitle; public class TestPresentationBuilder { + protected static final Path REGENERATION_DIRECTORY = null; + protected void assertPresentationEquals(final String expected, final IConsumer1 test) throws IOException { try (final TempDirectory temp = new TempDirectory()) { try (final PresentationBuilder actual = new PresentationBuilder()) { @@ -32,6 +36,7 @@ protected void assertPresentationEquals(final String expected, final IConsumer1< test.accept(actual); actual.write(actualActual); + if (REGENERATION_DIRECTORY != null) Files.copy(actualActual, REGENERATION_DIRECTORY.resolve(expected)); Assert.assertTrue(HZip.isEqual(name -> { final IMediaType mediaType = HMedia.getMediaType(name); return ((mediaType != null) && mediaType.isText()) ? HTextIO::isEqual : HBinaryIO::isEqual; diff --git a/en-presentation/src/test/java/com/g2forge/enigma/presentation/code.pptx b/en-presentation/src/test/java/com/g2forge/enigma/presentation/code.pptx index 03026fb..9a3ecec 100644 Binary files a/en-presentation/src/test/java/com/g2forge/enigma/presentation/code.pptx and b/en-presentation/src/test/java/com/g2forge/enigma/presentation/code.pptx differ diff --git a/en-presentation/src/test/java/com/g2forge/enigma/presentation/doc.pptx b/en-presentation/src/test/java/com/g2forge/enigma/presentation/doc.pptx index b86baa5..4b158b3 100644 Binary files a/en-presentation/src/test/java/com/g2forge/enigma/presentation/doc.pptx and b/en-presentation/src/test/java/com/g2forge/enigma/presentation/doc.pptx differ diff --git a/en-presentation/src/test/java/com/g2forge/enigma/presentation/empty.pptx b/en-presentation/src/test/java/com/g2forge/enigma/presentation/empty.pptx index 6084f44..88f9e00 100644 Binary files a/en-presentation/src/test/java/com/g2forge/enigma/presentation/empty.pptx and b/en-presentation/src/test/java/com/g2forge/enigma/presentation/empty.pptx differ diff --git a/en-presentation/src/test/java/com/g2forge/enigma/presentation/link.pptx b/en-presentation/src/test/java/com/g2forge/enigma/presentation/link.pptx index 2d65a22..50f417a 100644 Binary files a/en-presentation/src/test/java/com/g2forge/enigma/presentation/link.pptx and b/en-presentation/src/test/java/com/g2forge/enigma/presentation/link.pptx differ diff --git a/en-presentation/src/test/java/com/g2forge/enigma/presentation/title.pptx b/en-presentation/src/test/java/com/g2forge/enigma/presentation/title.pptx index 9ed12c8..45035af 100644 Binary files a/en-presentation/src/test/java/com/g2forge/enigma/presentation/title.pptx and b/en-presentation/src/test/java/com/g2forge/enigma/presentation/title.pptx differ