Feb 182008

BDD on Wikipedia

Uncategorized Comments Off

I finally got around to updating / rewriting the BDD page on Wikipedia.

This is either based on things Dan’s said or written, or things others (including me) have said or written and which he’s approved in my hearing as “official BDD”. I may well have made mistakes. I haven’t written any in-text citations as yet; will do that as and when I next have time (if no one else gets there first!)

Now, when someone asks me what the difference is between BDD and TDD, I have somewhere to point to. Many thanks to the contributors who wrote the predecessor. BDD’s come a long way since the article was first written, but your thoughts really helped me formulate mine.

Go edit. :)

Feb 082008

When I first started working with JBehave, I wrote a Tetris game. I had trouble finding Swing harnesses that didn’t depend on JUnit. So I wrote one.

JBehave 2.0 won’t include Swing support. The harness was completely independent of JBehave anyway. So, we decided that I should pull it out into its own project.

At the moment, it works by finding a named window and components. Here’s an example of how to use it:

WindowControl control = new WindowControl("my.named.frame");
control.clickButton("a.button");
control.enterText("a.textfield", "Text1");

I’ve tried to make it fast, minimal and extensible, since everyone seems to want different things from their Swing harness. If you have a request for a feature, please let me know!

A shout goes out to Szczepan for the gorgeous Mockito, which I used in the tests examples. Finally, mocks that can do Given / When / Then, instead of Given / Expect / Finish recording / When / Then go back to expectations cos you’ve forgotten what you wanted your code to do in the first place.

See lots of examples, together with Mockito beauty, here.

Feb 012008

Your Horoscope for February*

Uncategorized Comments Off

How people

Sometimes it’s nice to get your head down without any distractions, but beware – are you cut off from the rest of the world? No one is stopping to wait for you. Get the most important things done now, and leave yourself plenty of time to play. Other gems are buried in the sandpit.

Your tool of the month is Quicksilver.

Why people

It’s always strange when an alien to your planet turns out not only to speak your language, but to read your mind. Still, they’re here for a reason. From higher up, they can see everything you can and more – is there something beyond your horizon that you need to know about?

Your word of the month is Maelstrom.

Who people

Remember all those people you haven’t seen for a while? It’s time to look them up and drag them out of hibernation. You may find it difficult to get in touch, but persevere – perhaps they’re looking for you, too. When the storm hits, the best place to be is in the centre of everything.

Your eatery of the month is Barbeque Nation, Bangalore.

When people

The tree you’ve been tending for the past few years has finally borne fruit. Ironically this means it’s time to leave your garden behind, but don’t worry; others will learn how to tend it. Pack a few seeds, your favourite books and just go – the people you rely on won’t be far behind.

Your quote of the month is: Hearts that are delicate and kind and tongues that are neither – these make the finest company in the world..


*I stopped doing these because I didn’t think so many people were interested. Turns out I have some fans in India, and some comments I hadn’t read. Thank you! The Horoscope returns!

What’s my sign?