Posts Tagged: java beans

A Bit of Lovin’ for the Groovy Object Initialization

Posted by & filed under , .

I’m going to spread some lovin’ today for the widely-used yet less appreciated feature in Groovy which allows creating a Java bean and setting its properties in one line. Especially when dealing with unit tests this saves me a great deal of time and frustration. If you ever worked with “pure” (??) Java beans, then […]


Cobertura Issue with Ignoring Annotated Methods

Posted by & filed under , .

I’ve decided to plug in Cobertura in (some) of my projects to have an idea on the unit test/code coverage going on. I use Gradle, so I started looking at the Cobertura Gradle plugin. It turns out it’s pretty good — and offers a lot of the functionality that I needed. However, I came across […]

@TupleConstructor in Groovy Language

Posted by & filed under , .

I find myself nowadays mixing a lot of JVM languages: I write a lot of “core” code in Java, as I prefer the verbosity of it somehow, but then I find myself a lot of times I just need a lot of utilities or “quickies” around this code — be it for unit testing purposes […]

Dealing with Java Beans via Apache Bean Utils

Posted by & filed under , , .

Ok some of you are probably already familiar with the Apache Commons‘ BeanUtils framework, so this might not come as a surprise, but I have just discovered recently a class which I found myself in the past implementing bits of, one way or another: the BeanMap class! I swear, when dealing with loading random properties […]