Assert.assertXYZ methods



1)Assert.assertEquals(expectedValue, actualValue)
It will check the expectedValue and actualValue are for same content. If not it will fail the test case.
Example:
@Test
public void test_assertEquals(){
String actualValue = "1";
String expectedeValue = "1";
Assert.assertEquals(expectedeValue,actualValue);
}

2) Assert.assertNull(actualValue)
It will check the actualValue have null content. If not it will fail the test case.
Example:
@Test
public void test_assertNull(){
String actualValue = null;
String expectedeValue = null;
Assert.assertNull(expectedeValue,actualValue);
}

3) Assert.assertNotNull(actualValue)
It will check the actualValue have notNull content. If it is null it will fail the test case.

Example:
@Test
public void test_assertNotNull(){
String actualValue = "hi";
String expectedeValue = "hello";
Assert.assertNotNull(expectedeValue,actualValue);
}

4) Assert.assertNotEquals(value1, value2)
It will check the two arguments value are not equals. It both are equal then test case will be failed.
Example:
@Test
public void test_assertNotEquals(){
String value1 = "Hi";
String value2 = "hi";
Assert.assertNotEquals(value1, value2);
}

5)Assert.assertThat(actualValue, is(ExpectedValue))
@Test
public void test_Operation1(){
System.out.println("Test for operation1");
assertThat(1+2,is(3));

}
Assert that gives better readability 
assertThat(actual, is(expected));

assertThat(actual, is(not(expected)));

6) assertTrue(expected.contains(actual));
7) assertFalse(expected.contains(actual));