Hi There,
SWTBot.java has a waiUntil(Icondition, int, long) method which consumes
exceptions.
the problem with this...consider this scenario:
bot.waitUntil(new DefaultCondition(){
getFailureMessage(){
return somemessage
}
test(){
data1 = mymethodtogetdata();
data2 = mymethodtogetdata();
return data1.equals(data2);
}
});
mymethodtogetdata() is defined to throw myException.
mymethodtogetdata() throws myException{
...}
you can argue that data1 and data2 should be retrieved before the test
condition outside of bot.waitUntil() which is fine.
but the whole concept of waituntil is that it checks for the condition,
sleeps for an interval and checks again till timeout. so to speak mymethod
can return a different data in the meanwhile which is why it is inside the
test.
now, if mymethod throws the myException, m screwed cos the waitUntil method
will only return a timoutException.
thoughts?
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse