CheckStyle – Enforcing a coding style: part 2

CheckStyle – Enforcing a coding style: part 2

This entry is part 2 of 4 in the series Implementing a Java code style with CheckStyle

Cranking up the challenge – Making my own rules. In the second of three posts on configuring CheckStyle as a code format enforcer, I will be looking at how to set my own rules by producing my own checkstyle.xml Disclaimer time. I was aware that there is a plugin for Eclipse to make this task easy. There were however two reasons that I didn’t want to do that. The point of this whole blog is to learn about the tools…

Read More Read More

CheckStyle – Enforcing a coding style: part 1

CheckStyle – Enforcing a coding style: part 1

This entry is part 1 of 4 in the series Implementing a Java code style with CheckStyle

The easy way – Using someone else’s rules. As my little tutorial project was going along, I started to realise that I really wasn’t doing a very good job of getting consistency in my code. Whilst I don’t have to worry about reviewers struggling through pull requests littered with formatting changes, I do care about the quality of my work. A while back I sent the following tweet: Why I am determined to keep the quality of my test code…

Read More Read More

Reaching GA – a marathon or a series of sprints?

Reaching GA – a marathon or a series of sprints?

Apologies for the silence….. For developers and QA alike, getting version 1.0 out of the door was a lot of hard work. I doubt my experience in this is very different from anyone involved in the majority of commercial projects as you push to get something concrete, and most importantly saleable out into the market place. For all the talk and effort through beta and release candidate releases to make it just another release, the emotional and mental effort has…

Read More Read More

A week of frustration

A week of frustration

DI frameworks are painful! This was a tough week and I am afraid that I don’t have any working code for you this week. I still have emotional scars from my attempts to configure dependency injection with Spring at work. After a lot of pain we eventually decided to use Google Guice and with it set up and running I don’t have too many problems adding to my framework. When I do mess it up however I find it very…

Read More Read More

Parameterisation with JUnit5

Parameterisation with JUnit5

The background This was never intended to be an article in itself, but one of the problems with working on this late at night, is that sometimes I have to finish up, even though I know that there is another simple change I would like to make. In this case, my DriverFactoryTests were just screaming out for parameterisation. I know I had added some Windows 10 checks in there, but as I was of course running the tests over a…

Read More Read More