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 web server to serve our user interface, and we’ll use Selenium WebDriver 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 ...