I'm not much of an Eclipse guru,so please forgive my clumsiness。
In Eclipse,whenicallassert.assert equals (obj 1,obj2) and that fails,howdoigettheidetoshowmeobj1and obj 2?
I'm using JExample,butiguessthatshouldn ' tmakeadifference。
Edit: Here's what I see:
(source: yfrog.com)
水平。
解决方案
iftheinformationinthejunitviewisnotenoughforyou,youcanalwayssetaexceptionbreakpointon,for example,Java.lang.assertion thedebuggerwillstopimmediatelybeforetheexceptionisactuallybeingthrown。