摘要:
使用assert之前必须引入:import static org.unitils.reflectionassert.ReflectionAssert.*;import static org.unitils.reflectionassert.ReflectionComparatorMode.*;1.assertRefletionEquals(obj1,obj2);这个assert会检查两个对像的所有属性,使用反射机制检查他们是否一致,如果属性本身就是对像,那么就递归的使用反射对比对像的值放宽条件(lenient):Lenient order 当两个集合比较时,不比较顺序List<Integ 阅读全文
posted @ 2012-08-03 17:46
气定神闲
阅读(661)
评论(0)
推荐(0)
浙公网安备 33010602011771号