Bootstrapping the User Interface

Now that we have a model we’re happy with, we’re going to wrap it in a simple user interface that allows users to specify how much cash they want to withdraw. Even though it might not be a typical choice for a real ATM, we’re going to use a web form. We’ll use the Jetty[36] web server to serve our user interface, and we’ll use Selenium WebDriver[37] to automate it. We won’t go into much detail about how Selenium works here, but you’ll learn much more in Chapter 12, Working with Web Applications.

We’ll start by bringing the necessary dependencies into our project to get the web server up and running.

Creating a Website with Jetty

We’re going to use Jetty to build a very simple UI for our ATM. We’ll start ...

Get The Cucumber for Java Book now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.