Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions en-presentation/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<artifactId>en-presentation</artifactId>

Expand All @@ -14,7 +13,7 @@
<description>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.</description>

<properties>
<poi.version>4.1.1</poi.version>
<poi.version>5.4.0</poi.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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<PresentationBuilder> test) throws IOException {
try (final TempDirectory temp = new TempDirectory()) {
try (final PresentationBuilder actual = new PresentationBuilder()) {
Expand All @@ -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;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.