Home » Tag Archives: Testing

Tag Archives: Testing

Testing Spark Streaming: Unit testing

apache-spark-logo

There is enough evidence to prove the importance of automated testing. Projects in new fields often neglect automated testing, as the domain itself steals the attention of the developers. However, lack of testing implies ‘laugh now, cry later’. Some of the tools around Big Data space have been architected around testability or, at least, the community has taken care of ...

Read More »

An approach to help developers write meaningful tests

software-development-2-logo

Over the last few years we have been adding unit tests to our existing product to improve its internal quality. During this period we always had the challenge of choosing unit-vs-Integration tests. I would like to mention some of the approaches we have applied to improve the quality of existing system. At its core, unit testing is about testing a single ...

Read More »

JUnit 5 – Dynamic Tests

junit-logo

When it came to defining tests, JUnit 4 had a tremendous weakness: It had to happen at compile time. Now, JUnit 5 will fix this oversight! Milestone 1 just got released and it comes with the brand-new dynamic tests, which allow the creation of tests at run time. Overview Other posts in this series about JUnit 5: Setup Basics Architecture ...

Read More »

Unit vs Integration Akka Testing

akka-logo

This is the sixth post in the series about integrating sync clients with async systems (1, 2, 3, 4, 5). Here we’ll see how to test Akka actors with different testing styles. Unit vs Integration Testing Nowadays everybody agrees with the famous testing pyramid:           Harder to achieve is an agreement on what integration, unit, functional ...

Read More »

Spark Streaming Testing with Scala Example

apache-spark-logo

Spark Streaming Testing How do you create and automate tests of Spark Streaming applications?  In this post, we’ll show an example of one way in Scala.  This post is heavy on code examples and has the added bonus of using a code coverage plugin. Are the tests in this tutorial examples unit tests?  Or, are they integration tests?  Functional tests? ...

Read More »

JUnit 5 – Conditions

junit-logo

We recently learned about JUnit’s new extension model and how it allows us to inject customized behavior into the test engine. I left you with the promise to look at conditions. Let’s do that now! Conditions allow us to define flexible criteria when tests should or shouldn’t be executed. Their official name is Conditional Test Execution. Overview Other posts in ...

Read More »

Multiple Assertions in a Test are Fine

software-development-2-logo

Intro Oh yes; another article that attempts to defy traditional thinking. First it was that static methods are fine. Then I told you that Singletons are fine. Now, I’m saying a case can be made for multiple assertions in a single test. This will be a short one, too. Why Only One? First, I’ll look at the reasons that people ...

Read More »

JUnit 5 – Architecture

junit-logo

Now that we know how to set JUnit 5 up and write some tests with it, let’s take a look under the covers. In this post we’ll discuss the JUnit 5 architecture and the reasons why it turned out this way. Overview This post is part of a series about JUnit 5: Setup Basics Architecture Conditions Injection … JUnit 4 ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials