Package org.testng.asserts
Class LoggingAssert
java.lang.Object
org.testng.asserts.Assertion
org.testng.asserts.LoggingAssert
- All Implemented Interfaces:
IAssertLifecycle
Log the messages of all the assertions that get run.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onBeforeAssert
(IAssert<?> a) Invoked before an assert is run.Methods inherited from class org.testng.asserts.Assertion
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsNoOrder, assertEqualsNoOrder, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, doAssert, executeAssert, fail, fail, fail, getErrorDetails, onAfterAssert, onAssertFailure, onAssertSuccess
-
Constructor Details
-
LoggingAssert
public LoggingAssert()
-
-
Method Details
-
onBeforeAssert
Description copied from class:Assertion
Invoked before an assert is run. Meant to be overridden by subclasses.- Specified by:
onBeforeAssert
in interfaceIAssertLifecycle
- Overrides:
onBeforeAssert
in classAssertion
- Parameters:
a
- The assertion
-
getMessages
-