Home » Tag Archives: Testing (page 12)

Tag Archives: Testing

Tests as documentation

software-development-2-logo

Documentation needs to be comprehensive, always up-to-date and accessible. By comprehensive I mean that it must cover all important areas of the code as well as all functions of the application. While importance of documentation is obvious to most, many struggle without success to have it accurate and up-to-date. Response to “poor” documentation is often assignment of more resources and ...

Read More »

Insight view: Perfect Test Automation

software-development-2-logo

Nothing is perfect in the world, except the football skill of Leo Messi. Yeah, maybe not always but in most cases it’s impossible to create an ideal process. But I’m not scared to talk about my vision of a perfect test automation in the context of software development. My work experience gives me confidence in this question. So I’m starting! ...

Read More »

TDD Is Dead? Let’s Kill The Messenger Instead!

software-development-2-logo

David H. Hansson (@DHH) sparked the “TDD being dead”  latest twitter storm. DHH is no stranger to controversy, and he certainly picked the right title for it. Of course, the responses followed immediately. and most of them fell directly into his trap. Most people were defending TDD. How? By saying that Ruby on Rails (originally authored by DHH) was built ...

Read More »

What Is A Unit Test?

software-development-2-logo

What make unit tests different than other tests? They are full of FAIL. Going to the Wikipedia  definition, you’ll get a vague and unhelpful description, and to summarize: It tests a small piece of code. In  what language? What is small? And why does that matter?     I feel that many times in software, we’d rather concentrate on the ...

Read More »

Three Reasons Why We Should Not Use Inheritance In Our Tests

software-development-2-logo

When we write automated tests (either unit or integration tests) for our application, we should notice pretty soon that Many test cases use the same configuration which creates duplicate code. Building objects used in our tests creates duplicates code. Writing assertions creates duplicate code. The first thing that comes to mind is to eliminate the duplicate code. As we know, ...

Read More »

Spring test with thymeleaf for views

spring-interview-questions-answers

I am a recent convert to thymeleaf for view templating in Spring based web applications, preferring it over jsp’s. All the arguments that thymeleaf documentation makes on why thymeleaf over jsp holds water and I am definitely sold. One of the big reasons for me, apart from being able to preview the template, is the way the view is rendered ...

Read More »

Yet another way to handle exceptions in JUnit: catch-exception

junit-logo

There are many ways of handling exceptions in JUnit (3 ways of handling exceptions in JUnit. Which one to choose?, JUnit ExpectedException rule: beyond basics). In this post I will introduce catch-exception library that I was recommended to give a try. In short, catch-exceptions is a library that catches exceptions in a single line of code and makes them available ...

Read More »

A Docker Maven Plugin for Integration Testing

docker-logo

What is Docker? Docker is the buzzword that is taking the DevOps world. If you don’t know yet what is Docker, be warned, you will find yourself using it one way or another very soon. The rest of this post assumes some basic understanding of Docker, but if you are not familiar with it now, I’m sure you will come ...

Read More »

How (NOT TO) measure latency

software-development-2-logo

Latency is defined as time interval between the stimulation and response and is a value which is of importance in many computer systems (financial systems, games, websites, etc). Hence we – as computer engineers – want to specify some upper bounds / worst case scenarios for the systems we build. How can we do this? The days of counting cycles ...

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.