|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetaDataAssertion
This interface provides the user many methods for accessing the meta data of a pdf document such as the author or the creation date. Even some general informtions can be accessed via this interface.
Method Summary | |
---|---|
void |
assertAuthorsNameEquals(String expected)
The method compares the supposed authors name to the authors name of the pdf document. |
void |
assertCreationDateEquals(Calendar expected)
The method comapares the supposed creation date to the creation date of the document. |
void |
assertCreatorEquals(String expected)
The method compares the supposed creator to the creator of the document. |
void |
assertDecryptionWithOwnerPasswd(String expected)
The method compares the supposed owner password with the owner password if it exists of the document and trys to decrypt the document. |
void |
assertDecryptionWithUserPasswd(String expected)
The method compares the supposed user password with the user password if it exists of the document and trys to decrypt the document. |
void |
assertDocumentTitleEquals(String expected)
The method comapares the supposed document title of the document informations with the document title of the document. |
void |
assertEncryptionLenghthEquals(int expected)
The method compares the supposed encryption length with the encryption length of the document if it is encrypted else it returns 0. |
void |
assertIsDocumentEncrypted(boolean expected)
The method checks if the current document is encrypted and comapares it to the parameter. |
void |
assertIsOwnerPasswd(String expected)
The method compares the supposed owner password with the owner password if it exists of the document. |
void |
assertIsUserPasswd(String expected)
The method compares the supposed user password with the user password if it exists of the document. |
void |
assertKeywordsEquals(String expected)
The method compares the supposed keywords to the keywords of the document informations of the document. |
void |
assertPageCountEquals(int expected)
The method compares the supposed page number to the page number of the document. |
void |
assertSubjectEquals(String expected)
The method compares the supposed subject to the subject of the document. |
void |
assertVersionEquals(float expected)
The method compares the supposed version to the version of the document. |
Method Detail |
---|
void assertAuthorsNameEquals(String expected)
expected
- The supposed authors name.void assertCreatorEquals(String expected)
expected
- The supposed creator of the document.void assertCreationDateEquals(Calendar expected)
expected
- The supposed creation date of the documentvoid assertDecryptionWithOwnerPasswd(String expected)
expected
- The supposed owner password. Used for changing properties of a
pdf file like printing or editing permissions.void assertDecryptionWithUserPasswd(String expected)
expected
- The supposed user password. Usually used for reading the pdf
file.void assertDocumentTitleEquals(String expected)
expected
- The supposed title of the pdf filevoid assertEncryptionLenghthEquals(int expected)
expected
- The supposed encryption length of the pdf file.void assertKeywordsEquals(String expected)
expected
- The supposed keywords of the pdf file.void assertPageCountEquals(int expected)
expected
- The supposed page count of the pdf file.
The page count is 1-based.void assertSubjectEquals(String expected)
expected
- The supposed subject of the pdf file.void assertVersionEquals(float expected)
expected
- The supposed version of the pdf file.void assertIsDocumentEncrypted(boolean expected)
expected
- The expected boolean. It has to be set to "true" if you
suggest that the pdf file is encrypted.void assertIsOwnerPasswd(String expected)
expected
- The supposed ownerpassword.void assertIsUserPasswd(String expected)
expected
- The supposed user password.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |