Package com.itextpdf.test
Class AssertUtil
java.lang.Object
com.itextpdf.test.AssertUtil
Utilities class for assertion operation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddoesNotThrow(Executor executor) Asserts thatExecutor.execute()method call doesn't produce anyExceptionotherwise test will fail by throwingAssertionError.static voiddoesNotThrow(Executor executor, String message) Asserts thatExecutor.execute()method call doesn't produce anyExceptionotherwise test will fail by throwingAssertionError.
-
Method Details
-
doesNotThrow
Asserts thatExecutor.execute()method call doesn't produce anyExceptionotherwise test will fail by throwingAssertionError.- Parameters:
-
executor- the instance ofExecutorwhoseExecutor.execute()method will be checked for exception throwing
-
doesNotThrow
Asserts thatExecutor.execute()method call doesn't produce anyExceptionotherwise test will fail by throwingAssertionError.- Parameters:
-
executor- the instance ofExecutorwhoseExecutor.execute()method will be checked for exception throwing -
message- the identifying message for theAssertionErrormay be null
-