Home » Tag Archives: Testing (page 11)

Tag Archives: Testing

Spice up your test code with custom assertions

java-logo

Inspired by the @tkaczanowski talk during GeeCON conference I decided to have a closer look at custom assertions with AssertJ library. In my ‘Dice’ game I created a ‘Chance’ that is any combination of dice with the score calculated as a sum of all dice. This is relatively simple object:             class Chance implements Scorable ...

Read More »

Integration Tests for External Services

java-interview-questions-answers

Our systems often depend on 3rd party services (They may even be services internal to the company that we have no control on). Such services include Social Networks exposing APIs, SaaS with APIs like Salesforce, Authentication providers, or any system that our system communicates with, but is outside our product lifecycle. In regular integration tests, we would have an integration ...

Read More »

Writing Clean Tests – Beware of Magic

junit-logo

It is pretty hard to figure out a good definition for clean code because everyone of us has our own definition for the word clean. However, there is one definition which seems to be universal: Clean code is easy to read. This might come as a surprise to some of you, but I think that this definition applies to test ...

Read More »

What If I do This?

software-development-2-logo

When I started my career as a developer, there were testers on my team. That was a new concept for me, since before that I didn’t need any testing, because I didn’t have any bugs. I learned to work with them, although they were a kind of an annoyance, since, suddenly, They discovered I had bugs. Jumping ahead a few ...

Read More »

Do You Have Tutorial Unit Tests?

software-development-2-logo

I haven’t posted much recently because I’ve been busy with my new job. This brings up an interesting question – you are busy with a new job a lot when you’ve been doing 6- and 12-month contracts. What works and what doesn’t? What is your learning style?   Depending on the source there are between four and seven learning styles. ...

Read More »

Writing Clean Tests – Naming Matters

software-development-2-logo

It is pretty hard to figure out a good definition for clean code because everyone of us has our own definition for the word clean. However, there is one definition which seems to be universal: Clean code is easy to read. This might come as a surprise to some of you, but I think that this definition applies to test ...

Read More »

Test coverage using testing tools and methods

software-development-2-logo

Overview: To define “Test coverage” we have to talk about the topics stated below: The purpose of test coverage. Different types of test coverage standards. Test coverage metrics Unit test coverage Test coverage tools Advantage and disadvantage of test coverage. The purpose of test coverage Test coverage is an estimate utilized in software testing. It gives details about the level ...

Read More »

See, always told you: testing is just a waste of time

software-development-2-logo

Automated testing has become something people don’t speak about any more. It matured to being a standard in software development, everyone is and should be practicing. No more talks at conferences, only a few blog posts and online articles from now and then. That radically changed recently, again becoming a hotly debated topic, at least after some of @dhh’s quite ...

Read More »

Test Driven Discipline

software-development-2-logo

As the ”Is TDD Dead or Alive” continues, it is interesting to see the different kind of discussions. Here’s an example: The new default answer to TDD critics: How Would You Know? — Darren Cauthon (@darrencauthon) May 5, 2014 Not much of a two way conversation there. In contrast to the tweet above, people who were disappointed by TDD, actually ...

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.