/
ilyassab
/
homework6
Обзор
Документация
Войти
/
ilyassab
/
homework6
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/test/java/WorkWithExceptionsTests.java
18 строк
545 B
sabirzyanov.ilyas
homework
16 ноя 2025, 23:15
16 ноя 2025, 23:15
6241856
Код
Авторство
О чём код?
import org.junit.Test; import org.junit.Assert; import sbp.exceptions.WorkWithExceptions; public class WorkWithExceptionsTests { @Test public void exceptionProcessingTest() { WorkWithExceptions wwe = new WorkWithExceptions(); try { wwe.exceptionProcessing(); } catch (Exception e) { Assert.assertTrue(e instanceof Exception); Assert.assertEquals(1, e.getSuppressed().length); Assert.assertTrue(e.getSuppressed()[0] instanceof RuntimeException); } } }