Uses of Class
org.sejda.tests.tasks.TaskTestContext
Packages that use TaskTestContext
-
Uses of TaskTestContext in org.sejda.tests.tasks
Fields in org.sejda.tests.tasks declared as TaskTestContextMethods in org.sejda.tests.tasks that return TaskTestContextModifier and TypeMethodDescriptionTaskTestContext.assertCreator()asserts the creator has been set to the info dictionaryTaskTestContext.assertEmptyMultipleOutput()asserts that a multiple output task has generated no outputTaskTestContext.assertFailedSource(String source) TaskTestContext.assertHasAcroforms(boolean hasForms) assert that the document has an acroform with some field in itTaskTestContext.assertHasOutline(boolean hasOutline) TaskTestContext.assertNoTaskWarnings()TaskTestContext.assertOutlineContains(String title) assert the document outline contains an item with the given titleTaskTestContext.assertOutlineDoesntContain(String title) assert the document outline doesn't contain an item with the given titleTaskTestContext.assertOutputContainsFilenames(String... filenames) asserts that a multiple output task has generated the given file namesTaskTestContext.assertOutputSize(int size) asserts that a multiple output task has generated the given number of output files, hidden files don't countTaskTestContext.assertOutputSizeIncludingHidden(int size) asserts that a multiple output task has generated the given number of output files, including hidden files (in case the task is expected to have some hidden leftover)TaskTestContext.assertPages(int expected) asserts the output document has that number of pagesTaskTestContext.assertPages(String filename, int expected) asserts the output document with the given filename exists and has that number of pages.TaskTestContext.assertTaskDidNotFail()TaskTestContext.assertTaskFailed()TaskTestContext.assertTaskFailed(Class<? extends Throwable> cause) TaskTestContext.assertTaskFailed(String message) TaskTestContext.assertTaskStarted()TaskTestContext.assertTaskWarning(String message) TaskTestContext.assertTaskWarnings(List<String> messages) TaskTestContext.assertVersion(PdfVersion version) asserts the PDF version of the output is the given oneTaskTestContext.directoryOutputTo(MultipleOutputTaskParameters params) Initialize the given params with aDirectoryTaskOutputTaskTestContext.directoryOutputTo(SingleOrMultipleOutputTaskParameters params) Initialize the given params with a directory asFileOrDirectoryTaskOutputTaskTestContext.fileOutputTo(SingleOutputTaskParameters params, String extension) Initialize the given params with aFileTaskOutputon a file with the given extensionTaskTestContext.forEachPdfOutput(Consumer<org.sejda.sambox.pdmodel.PDDocument> consumer) Applies the given consumer to every generated outputTaskTestContext.forEachRawOutput(Consumer<Path> consumer) Applies the given consumer to every generated outputTaskTestContext.forPdfOutput(String filename, Consumer<org.sejda.sambox.pdmodel.PDDocument> consumer) Applies the given consumer to generated output PDF document with the given nameTaskTestContext.forPdfOutput(Consumer<org.sejda.sambox.pdmodel.PDDocument> consumer) Applies the given consumer to generated single output PDF documentTaskTestContext.forRawOutput(String filename, Consumer<Path> consumer) TaskTestContext.forRawOutput(Consumer<Path> consumer) Applies the given consumer to a single generated outputTaskTestContext.pdfOutputTo(SingleOrMultipleOutputTaskParameters params) Initialize the given params with a pdf file asFileOrDirectoryTaskOutputTaskTestContext.pdfOutputTo(SingleOutputTaskParameters params) Initialize the given params with aFileTaskOutput