O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

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

Getting ready

You might have noticed that in the course of this book, we have built several classes that compose an application that analyzes and models traffic. For your convenience, we have included all of them in the com.packt.cookbook.ch15_testing package. You're already familiar with (from Chapters 2, 4, 5, and 7) the five interfaces in the api folder: Car, SpeedModel, TrafficUnit, Truck, and Vehicle. Their implementations are encapsulated inside classes called factories in the folder with the same name (used in Chapters 2, 4, 5, and 7): FactorySpeedModel, FactoryTraffic, and FactoryVehicle. These factories produced input for the functionality of the AverageSpeed classes (Chapter 7, Concurrent and Multithreaded Programming) and TrafficDensity ...

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