[Bluej-discuss] Test Unit assert

Michael Kölling M.Kolling at kent.ac.uk
Wed Nov 29 09:13:38 GMT 2006


This was done by design. There was a brief discussion about this on  
this list some time before the 2.1.3 release, where someone suggested  
a change like this. (In fact, the suggesrion went further than this.)

The argument was that students are tempted not to think of the  
expected result, but blindly accept the default value. The original  
argument was, in fact, that students should not even be shown the  
actual return value in this situation, so that they really have to  
think about what they expect.

We went with a middle way: the result is shown, but accepting it as  
the expected result required manual confirmation by typing it in...

Michael


On 29 Nov 2006, at 00:34, Phil Robbins wrote:

> In BlueJ 2.1.2, when creating a unit test, calling a method that  
> returned a result gave the MethodResult dialogue box.  At the  
> bottom this gave me the opportunity to assert that the result was  
> equql to whatever it was.  There was a drop down box with the  
> default of "equal to", and a text box with the result just returned  
> entered as a default.
>
> With 2.1.3, all is the same except that the text box is now empty,  
> requiring me to type in the expected result.  I am wondering if  
> this is a bug, or if somebody decided it would be better this way!   
> If the latter, I would disagree - it is annoying!
>
>
> ***************************************************
> Phil Robbins
> School of Computer and Information Sciences,
> Auckland University of Technology,
> Private Bag 92006,
> Auckland 1142,
> New Zealand
>
> Phil.Robbins at aut.ac.nz
> http://www.aut.ac.nz/cis/
>
> Phone: (+64) 9 921 9999 x 5368
> Fax:   (+64) 9 921 9944
>
> Home page: http://elena.aut.ac.nz/homepages/staff/Phil-Robbins
> ********************************************************************** 
> *******
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20061129/49116222/attachment.html


More information about the bluej-discuss mailing list