Home » Tag Archives: Testing (page 5)

Tag Archives: Testing

Clean Unit Test Patterns – Presentation Slides

java-logo

I was given the opportunity to talk at the GDG DevFestKarlsruhe 2014 conference about ‘Clean Unit Test Patterns’. Thanks to the organizers for inviting me and thanks to all people listening to my talk. As promised I shared the presentation e.g. for those who want to have a look at the additional slides I did not cover during the talk: ...

Read More »

Legacy Code to Testable Code #5: Extract Class

software-development-2-logo

This post is part of the “Legacy Code to Testable Code” series. In the series we’ll talk about making refactoring steps before writing tests for legacy code, and how they make our life easier. A few years ago I got this from Erik Talboom: “A private method is a design smell”. It took me a while to fully understand it ...

Read More »

Agile tester part 2, questions and answers

agile-logo

Warning: The opinions expressed in this post are mine only, please do not use them against any other group of people, but only against me, that is Augusto Evangelisti a.k.a. Gus. After writing my most recent blog post “The Agile Tester, a Curious and Empathetic Animal” I received quite a lot of feedback for which I am very grateful. Feedback in ...

Read More »

Legacy Code to Testable Code #4: More Accessors!

software-development-2-logo

This post is part of the “Legacy Code to Testable Code” series. In the series we’ll talk about making refactoring steps before writing tests for legacy code, and how they make our life easier. It continues the last post on accessors.   We talked about “setter” accessors as a mean to inject values. The other side of the coin is ...

Read More »

AssertJ > Fest > Hamcrest

java-logo

I have previously blogged about Hamcrest, and using its assertThat methods in preference to JUnit’s Assert. However, I quickly after discovered FEST Assertions, and happily switched to it. It provides the same improved test readability and improves failure messages as Hamcrest, but has the extra benefit of enabling IDE auto completion, rather than having to search through package and class docs to find the right matcher. Unfortunately, Fest seems to ...

Read More »

Legacy Code to Testable Code #3: Adding Setter Accessors

software-development-2-logo

This post is part of the “Legacy Code to Testable Code” series. In the series we’ll talk about making refactoring steps before writing tests for legacy code, and how they make our life easier. Adding accessors to private state data is an admission that either our design is wrong, or that we’re adding the accessors purely for testing. If that ...

Read More »

The Agile Tester, a curious and empathetic animal

agile-logo

The agile tester (ˈadʒʌɪl/ ˈtɛstə/) is an mammal member of the family “Exploratoris”. He lives in the wild in small groups named cross-functional agile teams.           Skills Besides communication and technical skills, his main traits are curiosity and empathy [1]. Curiosity helps the agile tester in finding opportunities to improve the product. The agile tester questions ...

Read More »

Legacy Code To Testable Code #2: Extract Method

software-development-2-logo

This post is part of the “Legacy Code to Testable Code” series. In the series we’ll talk about making refactoring steps before writing tests for legacy code, and how they make our life easier. As with renaming, extracting a method helps us understand the code better. If you find it easy to name the method, it makes sense. Otherwise, you ...

Read More »

Legacy Code To Testable Code #1: Renaming

software-development-2-logo

This post is part of the “Legacy Code to Testable Code” series. In the series we’ll talk about making refactoring steps before writing tests for legacy code, and how they make our life easier. Renaming is easy and is usually safe. Most IDEs have the functionality, and most languages (I’m not talking about you, C++) lend themselves to safe renaming. ...

Read More »

JUnit in a Nutshell: Yet Another JUnit Tutorial

junit-logo

Why Another JUnit Tutorial? JUnit seems to be the most popular testing tool for developers within the Java world. So it is no wonder that there have been written some good books about this topic. But I still meet quite often programmers, who at most have a vague understanding of the tool and its proper usage. Hence I had the ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.