1、 Assert 是testng中的断言, 如果断言失败,会报
Exception in thread "main" java.lang.AssertionError: expected [1.92] but found [1.0]
注意这里是AssertioError不是Exception . 不能使用try catch(Exception e)捕获,需要使用 try catch(Error e)来捕获
1、 Assert 是testng中的断言, 如果断言失败,会报
Exception in thread "main" java.lang.AssertionError: expected [1.92] but found [1.0]
注意这里是AssertioError不是Exception . 不能使用try catch(Exception e)捕获,需要使用 try catch(Error e)来捕获