Home » Tag Archives: Testing

Tag Archives: Testing

Testing exceptions in Kotlin with assertFailsWith

I wanted to write this short post to highlight the assertFailsWith function available to Kotlin that makes testing exceptions a bit easier. Testing exceptions isn’t something fancy or new to JVM languages (from now on I will use Java for comparisons) but Kotlin comes with the nice extra benefit of providing this functionality as part of its standard library. Comparing ...

Read More »

Microservices for Java Developers: Testing

1. Introduction Since Kent Beck coined the idea of test-driven development (TDD) more than a decade ago, testing became an absolutely essential part of every software project which aims for success. Years passed, the complexity of the software systems has grown enormously so did the testing techniques but the same foundational principles are still there and apply. Table Of Contents ...

Read More »

Using JUnit 5 In Pre-Java 8 Projects

This post demonstrates how JUnit 5 can be used in pre-Java 8 projects and explains why it could be a good idea. JUnit 5 requires at least Java 8 as runtime environment, so you want to update your whole project to Java 8. But sometimes there exists reason why you can’t immediately update your project to Java 8. For example, ...

Read More »

Why Choose Software Testing As A Career Path?

If you’re here, that simply means you’re stuck making a vital decision: Should you choose software testing to bolster or even start your career, or not? Is software testing the right fit for you? Where should you start? What should you do? Why should you go with it? And a thousand more questions … There are many articles out there ...

Read More »

API Testing and Automation 101: The Essential Guide

java-interview-questions-answers

API stands for Application Programming Interface. Typically API is used to facilitate the interaction between two different applications by using any means of communication. When APIs are used over web networks, we term them as ‘Web Services’. In recent times APIs have become the backbone of programming. As in an application, writing APIs to communicate with database, or with another module has become ...

Read More »

Unit testing DynamoDB applications using JUnit5

In a previous post I had described the new AWS SDK for Java 2 which provides non-blocking IO support for Java clients calling different AWS services. In this post I will go over an approach that I have followed to unit test the AWS DynamoDB calls. There are a few ways to spin up a local version of DynamoDB – 1. ...

Read More »

Spark Run local design pattern

Many spark applications have now become legacy applications and it is very hard to enhance, test & run locally. Spark has very good testing support but still many spark applications are not testable. I will share one common error that appears when you try to run some old spark applications. Exception in thread "main" org.apache.spark.SparkException: A master URL must be ...

Read More »

Unit Testing Anti-Patterns, Full List

java-interview-questions-answers

I wrote some time ago about anti-patterns in OOP. Now it’s time to write about unit testing anti-patterns—because they also exist, and there are many. I will try to include every example I know in this list. If you know any others, please add them via a pull request or post a comment below. For each anti-pattern I will try ...

Read More »

Simple Testing Can Prevent Most Critical Failures

java-interview-questions-answers

Error handling is one of the hardest and ignored part of software development and if system is distributed then this becomes even harder. Nice paper is written on Simple Testing Can Prevent Most Critical Failures topic. Every developer should read this paper. I will try to summarized key take away from this paper but will suggest to read the paper to get ...

Read More »