Do you need something like that???

Enumeration enum = ....
Object obj = null;
for( int i=0; enum.hasMoreElement(); i++ )
{
    obj = enum.nextElement();
    assertNotNull("null element found at iteration " + (i+1), obj);
}

Pino

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 8:57 PM
Subject: regarding the asserts


>
>  I want to test(asserting) an enumeration with different values, by
putting
> in  loop.
> is it possible? if yes could anybody send how can i do that.
> also if the test fails at a certain oint of  the loop, how can i come up
> with a certain message.
> immediate responses would be highly appreciated
>
> thanks
> pawan
>
>
>
>
>
****************************************************************************
>
> The information contained in this transmission, which may be
> confidential and proprietary, is only for the intended recipients.
> Unauthorized use is strictly prohibited. If you receive this
> transmission in error, please notify me immediately by telephone
> or electronic mail and confirm that you deleted this transmission
> and the reply from your electronic mail system.
>
****************************************************************************
>
>
>

Reply via email to