Exception тесты
@Test(expected = ArithmeticException.class)
public void divisionWithException() {
int i = 1/0;
} @Test(expectedExceptions = ArithmeticException.class)
public void divisionWithException() {
int i = 1/0;
}
Задача 1. Напишите тест с IndexOutOfBoundsException.Last updated