Reduce tests verbosity

This commit is contained in:
jendib 2016-05-05 21:59:50 +02:00
parent f2ae899938
commit 6af7b6fce9
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,5 @@
sudo: required
dist: trusty
language: java language: java
before_install: before_install:
- sudo apt-get -qq update - sudo apt-get -qq update

View File

@ -97,10 +97,9 @@ public class TestFileUtil {
File file4 = new File(); File file4 = new File();
file4.setId("document_odt"); file4.setId("document_odt");
file4.setMimeType(MimeType.OPEN_DOCUMENT_TEXT); file4.setMimeType(MimeType.OPEN_DOCUMENT_TEXT);
try (InputStream pdfInputStream = PdfUtil.convertToPdf(documentDto, Lists.newArrayList(file0, file1, file2, file3, file4), true, true, 10)) { InputStream is = PdfUtil.convertToPdf(documentDto, Lists.newArrayList(file0, file1, file2, file3, file4), true, true, 10);
ByteStreams.copy(pdfInputStream, System.out); is.close();
}
} }
} }
} }