Redesigning JUnit Asserts (://URLFAN)

How popular is your website?  
Enter a website above, we'll show you who's talking about it right now.
We're currently ranking the popularity of 3,783,534 websites by parsing 121,708,848 blog posts from 2,027,200 blog feeds.
Article Structure
9 paragraphs
3444 characters
2 images
4 outgoing links

Redesigning JUnit Asserts

Post Date: Aug 02, 2006 1:02 p.m.
Ranked website: martin.ankerl.org (Not Ranked Yet)

For full text please visit source:
http://martin.ankerl.org/2006/08/02/redesigning-junit-asserts/


After reading about Behaviour Driven Development , using jMock for a while, and since I am very fond of Ruby ’s core class API s, I am sure the assertations of JUnit need a major overhaul. This are the goals I have for the redesign: Make the code expressive and as readable as possbile. This means the code should look like plain english. Usability is more important than flexibility. Allow for much more poweful checks. Usability is very important. The good thing is that it is easy to analyze how JUnit is used (download some test driven developed open source projects, grep for assertTrue, and there you have all the cases where JUnit’s asserts were not good enough ) I am playing around with a few ideas, and this is the API I am currently after: Assertions Example Usage public void testInt() { int num = 4+1; ensure(num).is(5); ensure(num).either(4, 5, 6); ensure(num).between(3, 1...

Content suppressed by ://URLFAN, for full article visit source

Websites mentioned in article
(click for rank details):


jmock.org
ruby-lang.org
rubycentral.com

Buzz Words mentioned in article:

No buzz words were found in article
How popular is martin.ankerl.org?

Click here to view stats and graphs for martin.ankerl.org


More posts from martin.ankerl.org

How To Make Firefox Over 40% Faster
From: martin.ankerl.org
Post Date: 2006-08-16 11:37:11

If you use Linux on a Laptop, chances are high that you can dramatically improve the responsiveness of all your GUI applications. This tip will work for you if you: Use a frequency scaling application like powernowd ( Ubuntu does this by default), cpudynd , or cpufreqd . Have Kernel 2.6.9 or better. In short, the trick is to disable powernowd and use the ondemand governor instead . How to do this in Ubuntu comes later, let me first show you what this change gets you... more
Program “e” — Extract Any Archive
From: martin.ankerl.org
Post Date: 2006-08-11 13:33:31

What? With this little tool you can extract almost any archive in Linux so you do not need to remember which tool and what command lines are necessary. Why? I got fed up with the sheer impossible number of compression formats out there. I am an avid linux command line user, but remembering 20 different commands with strange switches to get to the juicy content of a compressed files is too much for me. Therefore I have just happily spent a few hours of my life to write the application e... more
Behaviour Driven Development
From: martin.ankerl.org
Post Date: 2006-08-02 00:55:25

Recently there has been quite a bit of fuss about Behaviour Driven Development . So, what is it all about? You should have a look at that presentation from Dave Astels , it is quite interesting: Presentation: “Beyond Test Driven Development: Behaviour Driven Development” You can also view and download the video here . What this is about? In short, Behaviour Driven Development can be summarized into just one sentence: Behaviour Driven Development is exactly... more


Next Article | Previous Article


Feeds and posts are not affliated with ://URLFAN. They are displayed here simply for informational purposes, if you would like to remove your feed, posts, or domain from ranking and analysis, please contact us.

© 2006-2008 ://URLFAN (Server 201 Generated Nov 22 08 13:58 in 0.224 secs.)

Contact Us / About ://URLFAN / Notify me when my site is added or updated. / Add my RSS feed to ://URLFAN