Assert.assertEquals("发生错误时报告消息","预期值","生产值");
Assert.assertEquals("精确两位小数点",3.33,10.0/3.0,0.01);
Assert.assertNotNull("");//验证是否为非空
Assert.assertNull(""); //验证是否为空
Assert.assertSame("","预期对象","生产对象");//验证生产对象参数与预期对象参数是否同一个对象
Assert.assertNotSame("","","");
Assert.assertTrue(1>2);//验证二元条件是否为真
Assert.fail("使测试立即失效");
黑洞@heidsoft
Github:https://github.com/heidsoft
微博:http://weibo.com/liuganbin
热衷云计算和大数据
关注CloudStack,OpenStack,Linux c/c++/python/java
关注研究新技术