What are assertions in TestNg ?

(i) Assert.assetEquals(String actual, String expected);
* It accepts two strings.
* If both the strings are equal, the test case executes successfully otherwise the test case fails.

(ii) Assert.assertEquals(String actual, String expected, String message)
* It accepts two strings.
* If both the strings are equal, the test case executes successfully otherwise the test case fails.
*The message is printed if the test case fails.

(iii) Assert.assertEquals(boolean actual, boolean expected)
* It accepts two boolean values.
* If both the boolean values are equal, the test case executes successfully otherwise the test case fails.

(iv) Assert.assertTrue()
* It accepts a boolean value.
* The assertion passes if the condition is True, else an assertion error is displayed.

(v) Assert.assertFalse()
* It accepts a boolean value.
* The assertion passes if the condition is False, else an assertion error is displayed.

(vi) Assert.assertTrue(,message)
* It accepts a boolean value.
* The assertion passes if the condition is True, else an assertion error is displayed with the mentioned message.

(vii) Assert.assertFalse(,message)
* It accepts a boolean value.
* The assertion passes if the condition is False, else an assertion error is displayed with the mentioned message.