[jbehave-user] General question about JBehave, BDD and JUnit's assertXX methods

2012-10-02 Thread Julien Martin
Hello, I would like to know whether it is correct from a BDD point of view to use JUnit's assertXX methods in my steps or selenium pages (mine is a webapp). Regards, Julien.

Re: [jbehave-user] General question about JBehave, BDD and JUnit's assertXX methods

2012-10-02 Thread Mauro Talevi
Any assertion mechanism is allowed. What matters is that in case of failures a Throwable instance is thrown. On 02/10/2012 09:21, Julien Martin wrote: Hello, I would like to know whether it is correct from a BDD point of view to use JUnit's assertXX methods in my steps or selenium pages (mine

Re: [jbehave-user] General question about JBehave, BDD and JUnit's assertXX methods

2012-10-02 Thread Julien Martin
Thank you Louis, :-) I rather meant is there a jbehave-specific way to throwing the error? For instance if I have an assertEqual(expected, actual) that evaluates to false what is meant by Mauro's statement in his prior email? Regards, Julien. 2012/10/2 louis gueye louis.gu...@gmail.com Hi

Re: [jbehave-user] General question about JBehave, BDD and JUnit's assertXX methods

2012-10-02 Thread Andreas Ebbert-Karroum
Hi, it means: you can use JUnit asserts methods :) in addition, every method that has a throw statement, that is not caught, can be used to let a scenario fail. Andreas 2012/10/2 Julien Martin bal...@gmail.com Thank you Louis, :-) I rather meant is there a jbehave-specific way to throwing

Re: [jbehave-user] General question about JBehave, BDD and JUnit's assertXX methods

2012-10-02 Thread Cristiano Gavião
Btw, You can use any other asserting library, as the one provided by the Hamcrest project. Every time an assert fails, jbehave will catch and properly report it... regards, Cristiano On 02/10/12 07:51, Julien Martin wrote: Thank you Louis, :-) I rather meant is there a jbehave-specific way

Re: [jbehave-user] General question about JBehave, BDD and JUnit's assertXX methods

2012-10-02 Thread Julien Martin
I see... Thanks. 2012/10/2 Cristiano Gavião cvgav...@gmail.com Btw, You can use any other asserting library, as the one provided by the Hamcrest project. Every time an assert fails, jbehave will catch and properly report it... regards, Cristiano On 02/10/12 07:51, Julien Martin