tag:blogger.com,1999:blog-4110180.post7189885887745447574..comments2023-06-20T05:31:24.545-07:00Comments on Tapestry Central: Yet Another Bit of Spock LoveAnonymoushttp://www.blogger.com/profile/04486596490758986709noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-4110180.post-55195392955473294922012-05-08T10:49:02.262-07:002012-05-08T10:49:02.262-07:00Can do similar in Java, create a class with a flu...Can do similar in Java, create a class with a fluent interface then use it as follows:<br /><br />cronTest<br /> .expr(""0 15 10 * * ? 2005")<br /> .calendar(2005,10,28,10,15,0)<br /> .assert(true);<br /><br />cronTest<br /> .expr(""0 16 10 * * ? 2006")<br /> .calendar(2010,10,28,10,15,0)<br /> .assert(false);<br /><br />and so on..Sony Mathewhttps://www.blogger.com/profile/00345410246622289203noreply@blogger.comtag:blogger.com,1999:blog-4110180.post-90232029940738438672012-04-20T08:51:46.829-07:002012-04-20T08:51:46.829-07:00Tom,
I think you are missing a word there, eh? D...Tom,<br /><br />I think you are missing a word there, eh? Do you mean "If only Spock would use ..."?Anonymoushttps://www.blogger.com/profile/04486596490758986709noreply@blogger.comtag:blogger.com,1999:blog-4110180.post-89331327093677751852012-04-20T08:51:25.263-07:002012-04-20T08:51:25.263-07:00Denis,
If you look at the T5 tests, you'll se...Denis,<br /><br />If you look at the T5 tests, you'll see extensive use of @DataProvider ... however not many people are aware of this functionality AND even when used, it is significantly inferior to what Spock provides.Anonymoushttps://www.blogger.com/profile/04486596490758986709noreply@blogger.comtag:blogger.com,1999:blog-4110180.post-23601158713040258882012-04-20T03:36:30.527-07:002012-04-20T03:36:30.527-07:00You should use TestNG's @DataProvider for para...You should use TestNG's @DataProvider for parameterized tests.Denishttps://www.blogger.com/profile/02459152260461117887noreply@blogger.comtag:blogger.com,1999:blog-4110180.post-79940125049543440352012-04-20T02:25:33.590-07:002012-04-20T02:25:33.590-07:00Have a lot of fun doing the same thing in my proje...Have a lot of fun doing the same thing in my project. Also I've been trying to use BDD principes instead of TDD. Before convertion tests looked as checks for the methods if they work correctly. Now they look like a documentation for some functionality. It's really cleaner and more understandable. Some guys also recommend me to try <a href="http://www.scalatest.org/" rel="nofollow">scalatest</a> <br /><br />P.S. More correct to compare TestNG tests with specified data provider.Anonymoushttps://www.blogger.com/profile/15815964804382426510noreply@blogger.comtag:blogger.com,1999:blog-4110180.post-67465837792004695972012-04-19T20:43:50.216-07:002012-04-19T20:43:50.216-07:00Spock would only use a statically typed language.Spock would only use a statically typed language.Tom Davieshttps://www.blogger.com/profile/13542052736852306130noreply@blogger.com