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("使测试立即失效");
原文地址:http://www.cnblogs.com/heidsoft/p/3822358.html