Is one better than the other? if so, for what reasons? I am leaning towards the first because i can understand what the test is trying to much more quickly.
If so, when should one be using assertThrows()?
@Test(expected=CustomException.class)
public void test_one() {
execute()
}
vs.
@Test
public void test_one() {
assertThrows(CustomException.class, () -> execute());
}