You'd only use one or the other, depending on your Java version.

If you're a 1.4 person, you'd use Ensure.that(...). If you're on Java 5, you'd do a static import of Ensure and then have ensureThat(...) available. Just don't spend too much time looking in the Ensure.java file itself - you'll go blind :)

Cheers,
Dan

Shane Duan wrote:
I tried but it looked weird to have Ensure.that() and
Ensure.ensureThat() at the same place.

On 12/5/06, Dan North <[EMAIL PROTECTED]> wrote:
You already can. UsingMiniMock has exactly those methods. I just haven't
added them to Ensure yet.

Feel free to add them - it'll save me a small chore :)

Cheers,
Dan

Shane Duan wrote:
> Ah.  Thanks for the explanation.
>
> Are we going to add it now?  In this way, people who are using Java5
> can use this style right now.
>
> On 12/5/06, Dan North <[EMAIL PROTECTED]> wrote:
>> That's what I meant - sorry, didn't explain it very well.
>>
>> In Ensure we will have pairs of methods, called that(...) and
>> ensureThat(...) for each signature. That way, 1.4 folks can do
>> Ensure.that(...), and 1.5 people can statically import Ensure and use
>> ensureThat(...).
>>
>


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email






---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to