Permalink
Browse files

PDFProcessor creates compressed document by default.

  • Loading branch information...
eseifert committed Aug 19, 2017
1 parent 3915cc0 commit c22a64801684a03c0771a1ab3a0d4c30809b26d3
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/test/java/de/erichseifert/vectorgraphics2d/pdf/PDFProcessorTest.java
@@ -23,6 +23,7 @@
import static de.erichseifert.vectorgraphics2d.TestUtils.Template;
import static de.erichseifert.vectorgraphics2d.TestUtils.assertTemplateEquals;
import static org.junit.Assert.assertTrue;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@@ -53,6 +54,12 @@ private String process(Command<?>... commands) throws IOException {
return bytes.toString("ISO-8859-1");
}
@Test public void pdfProcessorCreatesCompressedDocumentByDefault() {
PDFProcessor pdfProcessor = new PDFProcessor();
assertTrue(pdfProcessor.isCompressed());
}
@Test public void envelopeForEmptyDocument() throws IOException {
String result = process();
Template actual = new Template((Object[]) result.split(EOL));

0 comments on commit c22a648

Please sign in to comment.