I wish there was a mocking framework…
Let’s start from the beginning. Lately, I’ve been quite busy (perhaps lazy is a better word, though) and I couldn’t find time to sharply reply to few interesting blog articles. Dan North became a...
View Articlebuild systems @ devoxx
I couldn’t attend to the session on gradle because there was a Mockito session at the same time. For some unknown reasons I chose Mockito… About gradle. Later on, Hans Dockter (AKA the gradle guy) was...
View Articlesubclass-and-override vs partial mocking vs refactoring
Attention all noble mockers and evil partial mockers. Actually… both styles are evil :) Spy, don’t mock… or better: do whatever you like just keep writing beautiful, clean and non-brittle tests. Let’s...
View Articleis debugger a modern translator?
Couple of days ago we interviewed a young adept of the craft. We let him code but he got stressed out a bit and wrote very complicated code. At some point he stopped understanding the code he wrote. So...
View ArticleMockito in Zurich
I will have a pleasure presenting Mockito at Jazoon in Zurich. My session is on Thursday – make sure you don’t miss it. During the session I’m going to show few slides and do live TDD with Mockito...
View Article//given //when //then forever
@Test public void shouldDoSomethingCool() throws Exception { //given //when //then } I like to call it the Ultimate Test Template. I’m so fond of those 3 little comments but surprisingly, I didn’t buy...
View Articleexpected exception in tests
I have a feeling too many people get it wrong so let me stress: @Test(expected = SomeException.class) // IS BAD FOR YOU I do enjoy jUnit a lot, thanks guys for sharing! Yet, I don’t like...
View ArticleXML please, I don’t want to recompile
There’s one quite naive argument that sometimes determines the technology choice. I want to write about it because this argument I’ve been hearing on and off for years. It’s about favouring XML to...
View ArticleIDE & patterns for huge maven project
I started working on a huge multi-module maven project these days. Trust me, working with ~150 maven modules at a time is a pain for a developer. On the other hand there’s a lot of room for me to...
View Articleopinionated or not
Opinionated framework on top of an unopinionated toolkit. If I had to choose my favorite engineering principle behind Gradle, there you go. Sticking to the principle is challenging. Imagine a subdomain...
View Article
More Pages to Explore .....