Tuesday, February 4, 2014

Introduction to Groovy runtime metaprogramming and AST transforms

Hi!

I'm very happy to share my presentation regarding Groovy metaprogramming and AST transforms. The slides are available at SlideShare and the code is available at TooMuchCoding Bitbucket and TooMuchCoding Github repositories. If you have any problems with reading any part of the slides or sth just post a comment here and I'll tr to help you :)

Enjoy!


Monday, December 16, 2013

Review of the Instant Mock Testing with PowerMock

Hi!

Quite recently I was asked by Packt publishing to write a review of the book Instant Mock Testing with PowerMock by Deep Shah. I have just managed to go through it and would like to share my thoughts :)

Thursday, December 12, 2013

Spring's @Primary annotation in action


Spring is a framework that never stops to amaze me. It's because of the fact that it offers plenty of different solutions that allow us, developers, to complete our tasks without writing millions of lines of code. Instead we are able to do the same in a much more readable, standardized manner. In this post I will try to describe one of its features that most likely is well known to all of you but in my opinion its importance is undervalued. The feature that I'll be talking about is the @Primary annotation.

Monday, September 30, 2013

Review of the Getting Started with Guava book

Hi!

I didn't have much time to write posts recently (beacuse of work and my book "Mockito Instant") but I came across Bill Bejeck's book entitled "Getting Started with Guava". After having read it I decided that I will try also to blog about computer science related books. So without any futher ado let's move to the review :)

Wednesday, August 28, 2013

Mockito Instant - my book has finally been published!

I am very pleased to announce that my book about Mockito entitled "Mockito Instant" has finally been published! You can buy it at Packt Publishing online shop.

Friday, August 9, 2013

Injecting Test Doubles in Spring using Mockito and BeanPostProcessors


I'm pretty sure that if you have ever used Spring and are familliar with unit testing, you have encountered a problem related to injecting mocks / spies (Test Doubles) in the Spring's application context which you wouldn't want to modify. This article presents an approach how to solve this issue using Spring's components.

Tuesday, August 6, 2013

Spock - return nested spies / mocks


Hi! Some time ago I have written an article about Mockito and using RETURNS_DEEP_STUBS when working with JAXB. Quite recently we have faced a similliar issue with deeply nesetd JAXB and the awesome testing framework written in Groovy called Spock. Natively Spock does not support creating deep stubs or spies so we needed to create a workaround for it and this article will show you how to do it.