[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 is a 
webapp).

Regards,
Julien.



-
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




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

2012-10-02 Thread Julien Martin
Mauro,
What do you mean by "a Throwable instance is thrown"? Can you please give
me a short example?
Regards,
J.

2012/10/2 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 is a
>> webapp).
>> Regards,
>> Julien.
>>
>
>
> --**--**-
> To unsubscribe from this list, please visit:
>
>
> http://xircles.codehaus.org/**manage_email
>
>
>


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

2012-10-02 Thread louis gueye
Hi Julien,

It means an instance of java.lang.Throwable which is the top ancestor of
all error notification mechanism (Error, Exception).

-- 
Cordialement/Regards,

Louis GUEYE
linkedin  |
blog
 | twitter 


2012/10/2 Julien Martin 

> Mauro,
> What do you mean by "a Throwable instance is thrown"? Can you please give
> me a short example?
> Regards,
> J.
>
>
> 2012/10/2 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 is a
>>> webapp).
>>> Regards,
>>> Julien.
>>>
>>
>>
>> --**--**-
>> To unsubscribe from this list, please visit:
>>
>>
>> http://xircles.codehaus.org/**manage_email
>>
>>
>>
>


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 

> Hi Julien,
>
> It means an instance of java.lang.Throwable which is the top ancestor of
> all error notification mechanism (Error, Exception).
>
> --
> Cordialement/Regards,
>
> Louis GUEYE
> linkedin  | 
> blog
>  | twitter 
>
>
>
> 2012/10/2 Julien Martin 
>
>> Mauro,
>> What do you mean by "a Throwable instance is thrown"? Can you please give
>> me a short example?
>> Regards,
>> J.
>>
>>
>> 2012/10/2 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 is a
 webapp).
 Regards,
 Julien.

>>>
>>>
>>> --**--**
>>> -
>>> To unsubscribe from this list, please visit:
>>>
>>>
>>> http://xircles.codehaus.org/**manage_email
>>>
>>>
>>>
>>
>
>


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 

> 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 
>
>> Hi Julien,
>>
>> It means an instance of java.lang.Throwable which is the top ancestor of
>> all error notification mechanism (Error, Exception).
>>
>> --
>> Cordialement/Regards,
>>
>> Louis GUEYE
>> linkedin  | 
>> blog
>>  | twitter 
>>
>>
>>
>> 2012/10/2 Julien Martin 
>>
>>> Mauro,
>>> What do you mean by "a Throwable instance is thrown"? Can you please
>>> give me a short example?
>>> Regards,
>>> J.
>>>
>>>
>>> 2012/10/2 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 is a
> webapp).
> Regards,
> Julien.
>


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


 http://xircles.codehaus.org/**manage_email



>>>
>>
>>
>


-- 
Mit freundlichen Grüßen / Best regards

Andreas Ebbert-Karroum | Bereichsleiter der Agilen Software Factory

codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland
tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0)
175.2664109
www.codecentric.de | blog.codecentric.de | www.meettheexperts.de |
www.more4fi.de

Sitz der Gesellschaft: Düsseldorf | HRB 63043
Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns
Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen
Schütz

Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche
und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige
Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie
bitte sofort den Absender und löschen Sie diese E-Mail und evtl.
beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen
evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist
nicht gestattet.


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 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 >


Hi Julien,

It means an instance of java.lang.Throwable which is the top
ancestor of all error notification mechanism (Error, Exception).

-- 
Cordialement/Regards,


Louis GUEYE
linkedin  | blog
 | twitter




2012/10/2 Julien Martin mailto:bal...@gmail.com>>

Mauro,
What do you mean by "a Throwable instance is thrown"? Can you
please give me a short example?
Regards,
J.


2012/10/2 Mauro Talevi mailto:mauro.tal...@aquilonia.org>>

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 is a webapp).
Regards,
Julien.




-
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email










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 

>  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 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 
>
>> Hi Julien,
>>
>>  It means an instance of java.lang.Throwable which is the top ancestor of
>> all error notification mechanism (Error, Exception).
>>
>> --
>> Cordialement/Regards,
>>
>> Louis GUEYE
>> linkedin  | 
>> blog
>>  | twitter 
>>
>>
>>
>> 2012/10/2 Julien Martin 
>>
>>> Mauro,
>>> What do you mean by "a Throwable instance is thrown"? Can you please
>>> give me a short example?
>>> Regards,
>>> J.
>>>
>>>
>>> 2012/10/2 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 is a
> webapp).
> Regards,
> Julien.
>


  -
 To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email



>>>
>>
>>
>
>