Код: Выделить всё
@Rule
OutputCapture outputCapture = new OutputCapture();
Код: Выделить всё
assertThat(outputCapture.toString(),containsString("status=200"));Подробнее здесь: https://stackoverflow.com/questions/427 ... -in-junit5
Код: Выделить всё
@Rule
OutputCapture outputCapture = new OutputCapture();
Код: Выделить всё
assertThat(outputCapture.toString(),containsString("status=200"));