Modifier | Constructor and Description |
---|---|
protected |
JavaScriptValidator(com.pdfunit.internal.spi.IDocument pdfDocument) |
Modifier and Type | Method and Description |
---|---|
JavaScriptValidator |
containing(java.lang.String expectedContent)
This method looks whether the JavaScript inside the current PDF-document contains the
string, given by the parameter.
|
JavaScriptValidator |
equalsTo(java.io.File file)
This method reads the content of the file and compares it to the JavaScript
inside the current PDF-document.
|
JavaScriptValidator |
equalsTo(java.io.InputStream input)
This method reads the content of the input stream and compares it to the JavaScript
inside the current PDF-document.
|
JavaScriptValidator |
equalsTo(java.io.Reader input)
This method reads the content of the reader and compares it to the JavaScript
inside the current PDF-document.
|
JavaScriptValidator |
equalsTo(java.lang.String fileName)
This method reads the file given by the parameter and compares the content
to the JavaScript inside the current PDF document.
|
JavaScriptValidator |
hasJavaScript()
This method does what the name suggests.
|
JavaScriptValidator |
matchingComplete(java.lang.String expectedContent)
This function compares the content given by the parameter with the JavaScript
inside the current PDF-document.
|
protected JavaScriptValidator(com.pdfunit.internal.spi.IDocument pdfDocument)
public JavaScriptValidator hasJavaScript()
@Guarded public JavaScriptValidator matchingComplete(java.lang.String expectedContent)
The internal JavaScript and the expected JavaScript are always compared ignoring all whitespaces.
@Guarded public JavaScriptValidator equalsTo(java.lang.String fileName)
@Guarded public JavaScriptValidator equalsTo(java.io.File file)
@Guarded public JavaScriptValidator equalsTo(java.io.InputStream input)
@Guarded public JavaScriptValidator equalsTo(java.io.Reader input)
@Guarded public JavaScriptValidator containing(java.lang.String expectedContent)
The internal JavaScript and the expected String are always compared ignoring all whitespaces.
Copyright (C) PDFUnit.com. See here for license.