Category:
TestNG
@Test(expectedExceptions = ArithmeticException.class)
public void testException() {
System.out.println(""SoftwareTestingMaterial.com"");
int i = 1 / 0;
}
Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions
@Test(expectedExceptions = ArithmeticException.class)
public void testException() {
System.out.println(""SoftwareTestingMaterial.com"");
int i = 1 / 0;
}