Please enable JavaScript.
Coggle requires JavaScript to display documents.
TestNG - Coggle Diagram
TestNG
TestNG Annotations
-
-
-
-
-
-
-
-
-
Assertions
Assert.assertTrue(condition, message)
Assert.assertFalse(condition, message)
Assert.assertNull(Object, message)
Assert.assertEquals(actual, expected, message)
Assert.assertNotEquals(actual, expected, message)
Assert.assertNotNull(Object, message)
-
DependsOnMethod
Executes test case depends on another tests. If the dependent test fails, then other tests are skipped.
Test(dependsOnMethods = {"initialize"}, dependsOnGroups = {"setup"})
public void combinedDependencyTest() {}
-
-
expectedExceptions
Test(expectedExceptions = {ArithmeticException.class, NullPointerException.class})
public void testMultipleExceptions() {
}
-
-
-