... throw an IllegalArgumentException if an empty string is passed to the method. There are 3 ways to assert a certain exception in Junit.
確定! 回上一頁