O'Reilly logo

Vaadin 7 Cookbook by Ondrej Kvasnovsky, Jaroslav Holan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The basics of test-driven development in Vaadin

In this recipe, we will use the Test-driven Development (TDD) approach. It means we first write tests that fail and then we implement the code, which will be required by the tests. We will explore how we can test Vaadin applications with pure JUnit tests without any mocking frameworks.

We will create a simple login form. The login form will be kept quite simple in this example, so we can easily absorb the idea of developing Vaadin applications with unit tests.

The basics of test-driven development in Vaadin

A simple login screen is as follows:

The basics of test-driven development in Vaadin

Getting ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required