Hi Elizabeth,
I typed the code to send you, because I decided to translate to turn things
easier. :)
In regard to the error, I found out that the problem is with my code, I
fixed it and now it's working.
Thank you for your reply.
Cheers,

On 5/14/07, Elizabeth Keogh <[EMAIL PROTECTED]> wrote:


Hi Alexandre,

I don't know if you typed the following or cut and pasted, but you have
two different spellings...

OperationDeniedException
OperationDiniedException

...so if this accurately reflects your code, it could be responsible.

If this doesn't help, please could you send the failure stack trace? I'll
look into it anyway and check that our behaviours are working.

Cheers,
Liz.

"Alexandre Martins" <[EMAIL PROTECTED]> wrote on 12/05/2007 21:39:40:

> Hi everybody,
> I'm writting some behaviours to my application and I think I found a
> bug on release 1.0.1 when an exception is expected.
> The following statement:
>
>     public void
> shouldReturnOperationDeniedErrorWhenAppendingACommentToADisabledTopic()
> throws Exception {
>         runAndCatch(OperationDeniedException.class, new Block() {
>             public void run() throws Exception {
>                 Topic topic = new Topic();
>                 topic.setEnabled(false);
>                 topic.append(new Comment());
>             }
>         });
>     }
>
>
> I implemented the code to make the behaviour verification succeeds:
>
>     public void append(Comment comment) {
>         if (!isEnabled()) {
>             throw new OperationDiniedException();
>         }
>
>         if (comments == null) {
>             comments = new ArrayList<Comment>(1);
>         }
>         comments.add(comment);
>     }
>
> But it's not working. It's still failing.
> At work I'm using version 1.0 and it works, but at home with a newer
> version it's not working.
> Anyone could help me with this?
> Kind regards.

--
Elizabeth Keogh
[EMAIL PROTECTED]
http://sirenian.livejournal.com
http://jbehave.org




--
______________________
Alexandre Martins Nunes
http://m.artins.net

Reply via email to